/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit or default to white */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* General container and text styles */
.page-login__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    color: #555555;
}

.page-login__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description {
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-login__text-center {
    text-align: center;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #a0d8f7); /* Light blue gradient */
    color: #FFFFFF; /* White text for dark background */
    overflow: hidden;
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Buttons */
.page-login__cta-button,
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary {
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary:hover {
    background: #1f8ec4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 0;
}

.page-login__login-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.page-login__form-group {
    margin-bottom: 25px;
}

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 5px rgba(38, 169, 224, 0.3);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 500;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #555555;
}

.page-login__register-link {
    color: #EA7C07; /* Login button color */
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

.page-login__security-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #777777;
}

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
}

.page-login__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-login__feature-item img {
    width: 100%;
    max-width: 250px; /* Constrain image size within feature card */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Ensure it behaves as a block element */
}

.page-login__feature-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-login__feature-item p {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-login__cta-area {
    text-align: center;
    margin-top: 60px;
}

.page-login__cta-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 500;
    color: #ffffff;
}

/* Promotion Section */
.page-login__promo-section {
    padding: 60px 0;
    text-align: center;
}