/* ShastaRobux Custom Login Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

body.login {
    background-color: #111827; /* Gray 900 */
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Background Effects */
body.login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.15), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15), transparent 25%);
    z-index: -1;
}

/* Login Container - Increased Size */
#login {
    width: 480px;
    max-width: 90%;
    padding: 0;
    margin: auto;
    position: relative;
    z-index: 10;
}

/* Logo */
#login h1 a {
    background-size: contain;
    width: 320px;
    height: 90px;
    margin-bottom: 2rem;
    background-position: center bottom;
}

/* Form Container */
.login form {
    background-color: #1f2937; /* Gray 800 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem; /* More rounded */
    padding: 3.5rem 3rem; /* Significantly more padding */
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
    margin-top: 0;
}

/* Labels */
.login label {
    font-weight: 700;
    color: #cbd5e1; /* Gray 300 */
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

/* Inputs */
.login form .input, 
.login form input[type=text] {
    background-color: #111827; /* Gray 900 */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem; /* Larger touch target */
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    width: 100%;
}

.login form .input:focus {
    border-color: #a855f7; /* Purple 500 */
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
    background-color: #030712; /* Darker black */
    color: #fff;
}

/* Button */
.wp-core-ui .button-primary {
    background: linear-gradient(to right, #9333ea, #a855f7);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.3), 0 2px 4px -1px rgba(168, 85, 247, 0.15);
    color: #fff;
    text-shadow: none;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-weight: 800;
    font-size: 1.1rem;
    height: auto;
    line-height: normal;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.wp-core-ui .button-primary:hover {
    background: linear-gradient(to right, #a855f7, #c084fc);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.4), 0 4px 6px -2px rgba(168, 85, 247, 0.2);
}

.wp-core-ui .button-primary:active {
    transform: translateY(0);
}

/* Links (Register | Lost Password) */
.login #nav, .login #backtoblog {
    margin: 1.5rem 0 0;
    padding: 0;
    text-align: center;
}

.login #nav a, 
.login #backtoblog a {
    color: #6b7280; /* Gray 500 */
    transition: color 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.login #nav a:hover, 
.login #backtoblog a:hover {
    color: #a855f7; /* Purple 500 */
    text-decoration: underline;
}

/* Checkbox specific */
.login .forgetmenot {
    margin-bottom: 20px !important;
    float: none;
    display: flex;
    align-items: center;
}
.login .forgetmenot label {
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}
.login input[type=checkbox] {
    margin-right: 10px !important;
    margin-bottom: 0 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background: #111827;
    border-color: rgba(255,255,255,0.2);
    border-radius: 4px !important;
}
.login input[type=checkbox]:checked::before {
    color: #a855f7;
    margin: -3px 0 0 -5px;
}

/* =========================================
   FIX MESSAGES & ALERTS (BADGES)
   ========================================= */
.login #login_error, 
.login .message, 
.login .success {
    background-color: #1f2937; /* Gray 800 */
    border-left: 4px solid #a855f7;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Error specific */
.login #login_error {
    border-left-color: #ef4444; /* Red 500 */
    background: linear-gradient(to right, rgba(239, 68, 68, 0.1), rgba(31, 41, 55, 0.9));
    color: #fca5a5; /* Red 300 */
}

/* Success specific */
.login .success {
    border-left-color: #22c55e; /* Green 500 */
    background: linear-gradient(to right, rgba(34, 197, 94, 0.1), rgba(31, 41, 55, 0.9));
    color: #86efac;
}

/* Info/Message specific */
.login .message {
    border-left-color: #3b82f6; /* Blue 500 */
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(31, 41, 55, 0.9));
    color: #bfdbfe;
}

/* Links inside messages */
.login #login_error a, 
.login .message a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.login #login_error a:hover, 
.login .message a:hover {
    color: #e2e8f0;
}
