/* =========================================================
   MBC CREATIVE LOGIN
   Responsive Desktop + Mobile
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #E6E6FA;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
}


/* =========================================================
   PAGE
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.login-header {
    width: 100%;
    background: #FFFFFF;
    padding: 18px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 139, 0.08);
}

.logo-link {
    display: block;
}

.logo-link img {
    display: block;
    width: 220px;
    max-width: 75vw;
    height: auto;
}


/* =========================================================
   MAIN
   ========================================================= */

.login-main {
    flex: 1;
    width: 100%;
    padding: 45px 20px 55px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 38px 42px 35px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 139, 0.08);
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #00008B;
}


/* =========================================================
   HEADING
   ========================================================= */

.login-heading {
    text-align: center;
    margin-bottom: 28px;
}

.creative-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: #E6E6FA;
    color: #00008B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-weight: bold;
}

.login-heading h1 {
    margin: 0;
    color: #111111;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.25;
}

.login-heading p {
    margin: 9px auto 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   ERROR
   ========================================================= */

.error-message {
    width: 100%;
    margin-bottom: 22px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFF0F0;
    border: 1px solid #F1B5B5;
    border-left: 4px solid #C62828;
    border-radius: 8px;
    color: #A61B1B;
    font-size: 12px;
}

.error-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #C62828;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* =========================================================
   FORM
   ========================================================= */

.form-group {
    width: 100%;
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #222222;
    font-size: 13px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 47px;
    padding: 11px 13px;
    background: #FFFFFF;
    color: #222222;
    border: 1px solid #D4D7DE;
    border-radius: 8px;
    outline: none;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #999999;
}

.form-input:hover {
    border-color: #A9AFC0;
}

.form-input:focus {
    border-color: #00008B;
    box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.10);
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666666;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
}

.password-toggle:hover {
    background: #F0F0FA;
}


/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 22px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #555555;
    font-size: 12px;
    cursor: pointer;
}

.remember-option input {
    width: 15px;
    height: 15px;
    accent-color: #00008B;
    cursor: pointer;
}

.forgot-link {
    color: #00008B;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    color: #0000CD;
    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px solid #00008B;
    border-radius: 9px;
    background: #00008B;
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.login-button:hover {
    background: #0000CD;
    border-color: #0000CD;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 139, 0.22);
}

.login-button:active {
    transform: translateY(0);
}


/* =========================================================
   SIGNUP LINK
   ========================================================= */

.signup-link {
    margin-top: 23px;
    padding-top: 21px;
    border-top: 1px solid #EEEEEE;
    text-align: center;
    color: #666666;
    font-size: 12px;
}

.signup-link a {
    margin-left: 4px;
    color: #00008B;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    color: #0000CD;
    text-decoration: underline;
}


/* =========================================================
   PASSWORD RECOVERY
   ========================================================= */

.recovery-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #EEEEEE;
}

.recovery-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recovery-title span {
    flex: 1;
    height: 1px;
    background: #E3E3E3;
}

.recovery-title h2 {
    margin: 0;
    color: #333333;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.recovery-description {
    margin: 9px 0 17px;
    text-align: center;
    color: #777777;
    font-size: 11px;
}

.recovery-form {
    display: flex;
    gap: 8px;
}

.recovery-form .form-input {
    flex: 1;
    min-width: 0;
}

.recovery-button {
    flex: 0 0 auto;
    min-height: 47px;
    padding: 10px 15px;
    border: 1px solid #00008B;
    border-radius: 8px;
    background: #FFFFFF;
    color: #00008B;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.recovery-button:hover {
    background: #00008B;
    color: #FFFFFF;
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    width: 100%;
    background: #FFFFFF;
    padding: 17px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 139, 0.08);
}

.login-footer p {
    margin: 0;
    color: #777777;
    font-size: 11px;
}

.login-footer strong {
    color: #00008B;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 600px) {

    .login-main {
        padding: 30px 15px 40px;
    }

    .login-card {
        max-width: 500px;
        padding: 34px 28px 30px;
        border-radius: 17px;
    }

    .login-heading h1 {
        font-size: 26px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .login-header {
        padding: 14px 15px;
    }

    .logo-link img {
        width: 190px;
    }

    .login-main {
        padding: 22px 12px 35px;
    }

    .login-card {
        padding: 30px 20px 25px;
        border-radius: 15px;
    }

    .login-heading {
        margin-bottom: 25px;
    }

    .creative-icon {
        width: 54px;
        height: 54px;
        font-size: 25px;
    }

    .login-heading h1 {
        font-size: 23px;
    }

    .login-heading p {
        font-size: 12px;
    }

    .login-options {
        margin-bottom: 20px;
    }

    .remember-option,
    .forgot-link {
        font-size: 11px;
    }

    .recovery-form {
        flex-direction: column;
    }

    .recovery-button {
        width: 100%;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .logo-link img {
        width: 170px;
    }

    .login-main {
        padding: 17px 9px 30px;
    }

    .login-card {
        padding: 27px 16px 23px;
    }

    .login-heading h1 {
        font-size: 21px;
    }

    .login-heading p {
        font-size: 11px;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-input {
        font-size: 12px;
    }

    .login-button {
        font-size: 14px;
    }

    .signup-link {
        font-size: 11px;
    }
}