/* Modern WordPress Login Page Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    color: #1a202c;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern Login Container */
.modern-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #2a3c5b 0%, #2a3c5b 100%);
}

/* Background with Animated Shapes */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Content Wrapper */
.login-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 600px;
}

/* Brand Section */
.login-brand-section {
    flex: 1;
    background: linear-gradient(135deg, #2a3c5b 0%, #244692 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.brand-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: inline-block;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo img {
    max-width: 280px;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-tagline h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-tagline p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* Form Section */
.login-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Google Login Section */
.google-login-section {
    margin-bottom: 30px;
}

.google-login-button {
    width: 100%;
    padding: 16px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.google-login-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.google-login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-login-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.google-login-button svg {
    flex-shrink: 0;
}

/* Login Divider */
.login-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    background: white;
    padding: 0 20px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* WordPress Login Form Styling */
#login {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#loginform {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Form Fields */
.modern-login-form input[type="text"],
.modern-login-form input[type="password"],
.modern-login-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    background: #f8fafc;
    color: #1a202c;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.modern-login-form input[type="text"]:focus,
.modern-login-form input[type="password"]:focus,
.modern-login-form input[type="email"]:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.modern-login-form input[type="text"]::placeholder,
.modern-login-form input[type="password"]::placeholder,
.modern-login-form input[type="email"]::placeholder {
    color: #a0aec0;
}

/* Submit Button */
.modern-login-form .button-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modern-login-form .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.modern-login-form .button-primary:active {
    transform: translateY(0);
}

/* Form Labels */
.modern-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

/* Remember Me Checkbox */
.modern-login-form .forgetmenot {
    margin: 20px 0;
}

.modern-login-form input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* Error Messages */
.modern-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
    font-size: 14px;
    font-weight: 500;
}

/* Success Messages */
.login .message,
.login .success {
    background: #c6f6d5;
    color: #22543d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #38a169;
    font-size: 14px;
    font-weight: 500;
}

/* Footer Links */
.login-footer {
    margin-top: 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #764ba2;
}

.back-to-site svg {
    transition: transform 0.3s ease;
}

.back-to-site:hover svg {
    transform: translateX(-3px);
}

.copyright {
    color: #a0aec0;
    font-size: 12px;
}

/* WordPress Default Elements Cleanup */
#login h1 a {
    display: none !important;
}

.login h1 {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-content-wrapper {
        margin: 20px;
        flex-direction: column;
        min-height: auto;
    }
    
    .login-brand-section {
        padding: 40px 30px;
    }
    
    .login-form-section {
        padding: 40px 30px;
    }
    
    .brand-tagline h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .modern-login-container {
        padding: 20px;
    }
    
    .login-content-wrapper {
        margin: 0;
        border-radius: 15px;
    }
    
    .login-brand-section {
        padding: 30px 20px;
    }
    
    .login-form-section {
        padding: 30px 20px;
    }
    
    .brand-tagline h2 {
        font-size: 1.8rem;
    }
    
    .brand-tagline p {
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .modern-login-container {
        padding: 10px;
    }
    
    .login-brand-section {
        padding: 25px 15px;
    }
    
    .login-form-section {
        padding: 25px 15px;
    }
    
    .brand-logo img {
        max-width: 200px;
    }
    
    .brand-tagline h2 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.modern-login-form .button-primary.loading {
    position: relative;
    color: transparent;
}

.modern-login-form .button-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.modern-login-form input:focus,
.modern-login-form .button-primary:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modern-login-form input[type="text"],
    .modern-login-form input[type="password"],
    .modern-login-form input[type="email"] {
        border-width: 3px;
    }
    
    .modern-login-form .button-primary {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none;
    }
    
    .modern-login-form .button-primary:hover {
        transform: none;
    }
    
    .back-to-site:hover svg {
        transform: none;
    }
}
