/* =========================================================
   SWC Modern Login
   Shared visual language with the Modern Navbar / Homepage
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Mitr', sans-serif;
    color: #172033;
    background:
        radial-gradient(circle at 10% 10%, rgba(42, 125, 225, .12), transparent 32%),
        radial-gradient(circle at 90% 85%, rgba(17, 199, 222, .14), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef5fc 52%, #f8fbff 100%);
}

.login-page * {
    box-sizing: border-box;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: min(100%, 470px);
    padding: 42px 42px 30px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(29, 72, 114, .15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.login-logo-wrap {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    margin-bottom: 13px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(37, 102, 171, .14);
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-title {
    color: #1674d1;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.1;
}

.login-brand-subtitle {
    margin-top: 3px;
    color: #73839a;
    font-size: .9rem;
}

.login-heading {
    text-align: center;
    margin-bottom: 27px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #149ed2;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
}

.login-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 2rem;
    font-weight: 500;
}

.login-heading p {
    margin: 8px auto 0;
    max-width: 340px;
    color: #7b8798;
    font-size: .88rem;
    line-height: 1.7;
}

.login-form {
    margin: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin: 0 0 8px 4px;
    color: #34445a;
    font-size: .9rem;
    font-weight: 400;
}

.input-wrap {
    position: relative;
}

.modern-input {
    width: 100%;
    height: 52px;
    padding: 10px 48px 10px 48px;
    border: 1px solid #dce5ef;
    border-radius: 15px;
    background: #f8fafc;
    color: #172033;
    font-family: 'Mitr', sans-serif;
    font-size: .94rem;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.modern-input::placeholder {
    color: #a2adbb;
}

.modern-input:focus {
    outline: none;
    border-color: #3b9ae8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 154, 232, .11);
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #5b9bd2;
    font-size: .95rem;
    pointer-events: none;
}

.form-group small {
    display: block;
    margin: 7px 4px 0;
    color: #9aa6b5;
    font-size: .72rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    padding: 7px 9px;
    border-radius: 9px;
    background: transparent;
    color: #478dc1;
    font-family: 'Mitr', sans-serif;
    font-size: .75rem;
    cursor: pointer;
}

.password-toggle:hover {
    background: #eaf5fd;
}

.login-submit,
.register-action {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 15px;
    padding: 0 18px 0 22px;
    font-family: 'Mitr', sans-serif;
    font-size: .96rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-submit {
    margin-top: 8px;
    background: linear-gradient(135deg, #1677d3 0%, #12a9d8 100%);
    color: #fff;
    box-shadow: 0 12px 25px rgba(26, 130, 205, .22);
}

.login-submit:hover {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(26, 130, 205, .27);
}

.submit-arrow {
    font-size: 1.2rem;
}

.secondary-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    color: #3e7fae;
    font-size: .84rem;
    text-decoration: none;
}

.secondary-action:hover {
    color: #176fa8;
    text-decoration: none;
}

.secondary-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a7cce6;
    border-radius: 50%;
    font-size: .72rem;
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 14px;
    color: #9aa6b5;
    font-size: .77rem;
}

.register-divider::before,
.register-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e7edf3;
}

.register-action {
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    border: 1px solid #8ad3e2;
    background: #effcff;
    color: #1688a5;
    font-size: .88rem;
}

.register-action:hover {
    color: #11788f;
    background: #e5faff;
    text-decoration: none;
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 23px;
    text-align: center;
    color: #b0bac6;
    font-size: .68rem;
    letter-spacing: .03em;
}

.login-submit {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-submit .submit-arrow {
    position: absolute;
    right: 20px;
}



/* Tablet */
@media (max-width: 767px) {
    .login-shell {
        padding: 28px 16px;
    }

    .login-card {
        padding: 34px 28px 26px;
        border-radius: 26px;
    }

    .login-logo-wrap {
        width: 100px;
        height: 100px;
    }

    .login-heading h1 {
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .login-shell {
        padding: 18px 12px;
    }

    .login-card {
        padding: 29px 20px 23px;
        border-radius: 23px;
    }

    .login-brand {
        margin-bottom: 21px;
    }

    .login-logo-wrap {
        width: 88px;
        height: 88px;
    }

    .login-brand-title {
        font-size: 1.2rem;
    }

    .login-heading {
        margin-bottom: 22px;
    }

    .login-heading h1 {
        font-size: 1.55rem;
    }

    .login-heading p {
        font-size: .81rem;
    }

    .modern-input {
        height: 50px;
        font-size: .88rem;
    }
}
