﻿/* ==========================================================
   Login Page
   ========================================================== */

:root {
    --login-primary: #087f82;
    --login-primary-dark: #055b61;
    --login-heading: #10213a;
    --login-text: #64748b;
    --login-border: #dfe7ef;
    --login-background: #f7fafc;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--login-background);
    color: var(--login-heading);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
}

/* ==========================================================
   Branding Section
   ========================================================== */

.login-brand-section {
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient( 145deg, #075f60 0%, #086d70 42%, #07394d 100% );
}

    .login-brand-section::before,
    .login-brand-section::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }

    .login-brand-section::before {
        width: 420px;
        height: 420px;
        top: -170px;
        right: -140px;
    }

    .login-brand-section::after {
        width: 360px;
        height: 360px;
        bottom: -170px;
        left: -100px;
    }

.login-brand-content {
    position: relative;
    z-index: 2;
    width: min(680px, 82%);
    text-align: center;
    color: #ffffff;
}

.login-main-logo {
    width: 230px;
    max-height: 120px;
    margin-bottom: 30px;
    object-fit: contain;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.login-brand-content h1 {
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: 800;
}

.login-brand-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
    line-height: 2;
}

.login-hero-image {
    width: 100%;
    max-width: 540px;
    max-height: 310px;
    object-fit: contain;
}

/* ==========================================================
   Login Form Section
   ========================================================== */

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 430px;
}

.login-mobile-logo {
    width: 190px;
    max-height: 100px;
    object-fit: contain;
}

.login-heading {
    margin-bottom: 32px;
}

    .login-heading h2 {
        margin-bottom: 9px;
        font-size: 1.7rem;
        font-weight: 800;
    }

    .login-heading p {
        margin: 0;
        color: var(--login-text);
        font-size: 0.86rem;
    }

.login-form .form-label {
    margin-bottom: 8px;
    color: #24364f;
    font-size: 0.8rem;
    font-weight: 700;
}

.login-input-group {
    position: relative;
}

    .login-input-group > i {
        position: absolute;
        top: 50%;
        right: 15px;
        z-index: 2;
        transform: translateY(-50%);
        color: #7d8999;
    }

    .login-input-group .form-control {
        height: 50px;
        padding-right: 44px;
        padding-left: 46px;
        border: 1px solid var(--login-border);
        border-radius: 11px;
        background: #fbfcfe;
        font-size: 0.82rem;
    }

        .login-input-group .form-control:focus {
            border-color: #6fc4c5;
            background: #ffffff;
            box-shadow: 0 0 0 0.2rem rgba(8, 127, 130, 0.11);
        }

.password-toggle-button {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #78869a;
    transform: translateY(-50%);
}

.login-options {
    margin: 18px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .login-options .form-check-label,
    .forgot-password-link {
        font-size: 0.75rem;
    }

.forgot-password-link {
    color: var(--login-primary);
    font-weight: 700;
    text-decoration: none;
}

.login-submit-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--login-primary), #0aa0a4 );
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(8, 127, 130, 0.2);
}

    .login-submit-button:hover {
        color: #ffffff;
        background: linear-gradient( 135deg, var(--login-primary-dark), var(--login-primary) );
    }

.login-validation-summary:empty {
    display: none;
}

.login-validation-summary,
.login-field-error {
    font-size: 0.72rem;
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    color: #919cab;
    font-size: 0.66rem;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 991.98px) {
    .login-form-section {
        min-height: 100vh;
    }
}

@media (max-width: 575.98px) {
    .login-form-section {
        padding: 28px 18px;
    }

    .login-heading {
        text-align: center;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
