/* Modern Login Page - Override styles using .login-page scope */

body.login-page {
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 0, 25, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 111, 97, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    z-index: -1;
}

body.login-page::after {
    content: '';
    position: fixed;
    top: 5%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ff0019, #ff6f61);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(80px);
    z-index: -1;
}

body.login-page .login-container {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(255, 0, 25, 0.05);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.login-page .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff0019, #ff6f61);
}

body.login-page .login-container::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 0, 25, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.login-page .login-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff0019, #ff6f61);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

body.login-page .login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 36px;
    line-height: 1.6;
    position: relative;
}

body.login-page .login-form {
    position: relative;
    z-index: 1;
}

body.login-page .input-group {
    position: relative;
    margin-bottom: 18px;
    text-align: right;
}

body.login-page .input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 14px;
    background: #f9fafb;
    color: #111;
    transition: all 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
}

body.login-page .input-group input:hover {
    border-color: #d1d5db;
    background: #fff;
}

body.login-page .input-group input:focus {
    border-color: #ff0019;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 0, 25, 0.08);
    outline: none;
}

body.login-page .input-group label {
    position: absolute;
    top: 17px;
    right: 18px;
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.25s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 6px;
}

body.login-page .input-group input:focus + label,
body.login-page .input-group input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 11px;
    font-weight: 700;
    color: #ff0019;
    background: #fff;
    border-radius: 4px;
}

body.login-page .password-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 2;
}

body.login-page .password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #ff0019;
}

body.login-page .caps-lock-warning {
    background: #fffbeb;
    color: #92400e;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid #fde68a;
}

body.login-page .caps-lock-warning i {
    color: #f59e0b;
    font-size: 16px;
}

body.login-page .login-form .btn-primary {
    background: linear-gradient(135deg, #ff0019, #cc0014);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(255, 0, 25, 0.25);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

body.login-page .login-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

body.login-page .login-form .btn-primary:hover {
    background: linear-gradient(135deg, #cc0014, #99000f);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 0, 25, 0.35);
}

body.login-page .login-form .btn-primary:hover::before {
    left: 100%;
}

body.login-page .login-form .btn-primary:active {
    transform: translateY(-1px);
}

body.login-page .signup-prompt {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed #e5e7eb;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

body.login-page .remember-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    cursor: pointer;
    user-select: none;
}

body.login-page .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff0019;
    cursor: pointer;
}

body.login-page .signup-prompt p {
    margin: 0;
}

body.login-page .signup-prompt .signup-link {
    color: #ff0019;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease;
}

body.login-page .signup-prompt .signup-link:hover {
    border-bottom-color: #ff0019;
}

@media (max-width: 480px) {
    body.login-page .login-container {
        padding: 36px 26px;
        border-radius: 22px;
    }

    body.login-page .login-title {
        font-size: 26px;
    }
}
