
/* ==========================================
   ON BOARD POWER - MODERN LOGIN DESIGN
   ========================================== */

/* Main Page */
.modern-login {
    min-height: 100vh;
    width: 100%;
    background: #fafbfc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

/* Loading */
.login-loading {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafbfc;
}

/* Main Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

/* Logo */
.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand img {
    max-width: 190px;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Login Card */
.login-card {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(30, 50, 80, 0.07);
    border: 1px solid #edf0f5;
}

/* Heading */
.login-heading {
    margin-bottom: 32px;
}

.login-heading h1 {
    font-size: 26px;
    font-weight: 700;
    color: #202b3c;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.35;
}

.login-heading p {
    font-size: 14px;
    color: #8491a5;
    line-height: 1.7;
    margin: 0;
}

/* Form */
.login-card .form-group {
    margin-bottom: 23px;
}

.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 9px;
}

/* Inputs */
.modern-input {
    width: 100%;
    height: 50px;
    padding: 12px 15px;
    border: 1px solid #e1e6ed;
    border-radius: 8px !important;
    background: #f9fafc;
    color: #344054;
    font-size: 14px;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.modern-input:focus {
    background: #ffffff;
    border-color: #3598dc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 152, 220, 0.10) !important;
}

.modern-input::placeholder {
    color: #aab3c2;
}

/* Password */
.password-wrapper {
    position: relative;
}

.password-wrapper .modern-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 48px;
    border: none;
    background: transparent;
    color: #8491a5;
    cursor: pointer;
    outline: none;
}

.password-toggle:hover {
    color: #3598dc;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-top: -7px;
    margin-bottom: 25px;
}

.forgot-password a {
    font-size: 13px;
    font-weight: 600;
    color: #3598dc;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Sign In Button */
.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: #3598dc;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login i {
    margin-left: 8px;
    font-size: 12px;
}

.btn-login:hover {
    background: #2385c7;
    box-shadow: 0 5px 15px rgba(53, 152, 220, 0.2);
}

/* Reset Password Actions */
.reset-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reset-actions .btn-login {
    flex: 1;
}

.btn-back {
    height: 50px;
    padding: 0 22px;
    border: 1px solid #e1e6ed;
    background: #ffffff;
    color: #475467;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-back:hover {
    background: #f8fafc;
}

/* Alerts */
.modern-login .alert {
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 22px;
    white-space: normal;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 28px;
}

.login-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.login-social a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    color: #7b8798;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-social a:hover {
    color: #3598dc;
    border-color: #3598dc;
    transform: translateY(-2px);
}

.login-footer p {
    font-size: 12px;
    color: #98a2b3;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .modern-login {
        padding: 25px 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-heading h1 {
        font-size: 23px;
    }

    .login-brand img {
        max-width: 160px;
    }
}

/* Smaller Screens */
@media (max-width: 350px) {
    .login-card {
        padding: 28px 18px;
    }

    .reset-actions {
        flex-direction: column;
    }

    .reset-actions .btn-login,
    .btn-back {
        width: 100%;
    }
}
