/* Modern Professional Login Page Styles */

/* Reset & Base */
body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated Background Effect */
body.login::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Login Container */
#login {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 56px 48px;
    width: 440px;
    border-radius: 24px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Area */
#login h1 {
    text-align: center;
    margin-bottom: 40px;
}

#login h1 a {
    background-image: url('/wp-content/uploads/rowad-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 180px;
    height: 70px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

#login h1 a:hover {
    transform: scale(1.05);
}

/* Form Styling */
.login form {
    margin-top: 24px;
    padding: 0;
}

/* Labels */
.login label {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    display: block;
}

/* Input Fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #ffffff !important;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    color: #1e293b !important;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover,
.login input[type="email"]:hover {
    border-color: #cbd5e1;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    outline: none;
    background: #ffffff !important;
}

/* Input Placeholders */
.login input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* Password Visibility Toggle */
.login .pw-weak {
    background: #fef3c7 !important;
    border-color: #fbbf24 !important;
}

/* Submit Button */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    width: 100%;
    cursor: pointer;
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.35),
        0 4px 12px rgba(102, 126, 234, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.wp-core-ui .button-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa0 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 14px 32px rgba(102, 126, 234, 0.4),
        0 6px 16px rgba(102, 126, 234, 0.25);
}

.wp-core-ui .button-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.3),
        0 2px 8px rgba(102, 126, 234, 0.2);
}

.wp-core-ui .button-primary:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.2),
        0 10px 25px rgba(102, 126, 234, 0.35);
}

/* Remember Me Checkbox */
.login .forgetmenot {
    font-size: 14px;
    color: #64748b;
    margin: 20px 0;
}

.login input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Links Styling */
.login #nav,
.login #backtoblog {
    text-align: center;
    font-size: 14px;
    margin-top: 24px;
    padding: 0;
}

.login #nav a,
.login #backtoblog a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #5a67d8;
}

.login #nav a::after,
.login #backtoblog a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.login #nav a:hover::after,
.login #backtoblog a:hover::after {
    width: 100%;
}

/* Divider for Links */
.login #nav {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* CAPTCHA Styling */
.login .gglcptch {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

/* Error Messages */
.login .message,
.login #login_error {
    border-left: 4px solid #667eea;
    background: #eff6ff;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.login #login_error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* Privacy Link */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 16px;
}

.login .privacy-policy-page-link a {
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login .privacy-policy-page-link a:hover {
    color: #667eea;
}

/* Loading State */
.login .button-primary.disabled,
.login .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media screen and (max-width: 520px) {
    #login {
        width: 90%;
        padding: 40px 32px;
        margin: 20px;
    }
    
    body.login::before {
        background-size: 30px 30px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Dark mode disabled for login page to ensure consistency */
}