/* style/login.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-background: #08160F;
    --color-card-bg: #11271B;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the login page content */
.page-login {
    background-color: var(--color-background); /* Ensure consistency with body background */
    color: var(--color-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container for main content areas */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-login__section-title {
    font-size: clamp(2em, 5vw, 2.8em); /* Responsive font size for H2 */
    font-weight: 700;
    color: var(--color-gold); /* Gold color for main titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__main-title {
    font-size: clamp(2.5em, 6vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 800;
    color: var(--color-gold); /* Gold color for H1 */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__sub-title,
.page-login__form-title,
.page-login__card-title,
.page-login__icon-card-title {
    font-size: clamp(1.5em, 4vw, 2em); /* Responsive font size for H3 */
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Section descriptions and paragraphs */
.page-login__description,
.page-login__section-description,
.page-login__card-text,
.page-login__icon-card-text,
.page-login__text,
.page-login__register-text {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 25px;
}

.page-login__text,
.page-login__icon-card-text {
    text-align: left;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content doesn't spill */
    background-color: var(--color-deep-green); /* Fallback for hero section */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height on larger screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-content {
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    z-index: 1; /* Ensure text is above image if any overlap */
}

/* CTA Buttons */
.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__center-buttons {
    margin-top: 40px;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__login-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow on small screens */
}

.page-login__btn-primary,
.page-login__login-button {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover,
.page-login__login-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--color-text-main); /* Light text on dark background */
    border: 2px solid var(--color-border);
}

.page-login__btn-secondary:hover {
    background-color: var(--color-border);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

/* Login Form Section */
.page-login__login-form-section {
    padding: 80px 0;
    background-color: var(--color-card-bg); /* Dark background for this section */
}

.page-login__form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-login__form-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min size for image */
    min-height: 200px; /* Min size for image */
}

.page-login__login-form {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 1.05em;
}

.page-login__form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.page-login__form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    gap: 15px;
}

.page-login__login-button {
    flex-grow: 1; /* Allow button to take available space */
}

.page-login__forgot-password,
.page-login__register-link,
.page-login__text-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover,
.page-login__text-link:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

.page-login__register-text {
    margin-top: 25px;
    text-align: center;
    font-size: 1em;
}

/* Content blocks with lists */
.page-login__content-block {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__ordered-list,
.page-login__unordered-list {
    list-style-position: inside;
    padding-left: 0;
    margin-top: 20px;
}

.page-login__ordered-list {
    list-style-type: decimal;
}

.page-login__unordered-list {
    list-style-type: disc;
}

.page-login__list-item {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    padding-left: 10px;
    font-size: 1.05em;
}

.page-login__list-item strong {
    color: var(--color-text-main);
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: var(--color-background); /* Use background color for light section */
    padding: 80px 0;
}

.page-login__light-bg {
    background-color: var(--color-background); /* Using main background for light section as per color scheme */
    color: var(--color-text-main);
}

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

.page-login__card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px; /* Minimum height for cards */
}

.page-login__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min size for image */
    min-height: 200px; /* Min size for image */
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: var(--color-deep-green);
    padding: 80px 0;
}

.page-login__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main); /* Ensure light text on dark section */
}

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

/* Security Section */
.page-login__security-section {
    background-color: var(--color-background);
    padding: 80px 0;
}

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

.page-login__icon-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px; /* Minimum height for cards */
}