/* Moderno Child - Custom Login Page Styles */

/* Reset and Base Styles */
body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Login Form Container */
#login {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Styling */
.login h1 {
    margin: 0 0 30px 0;
    text-align: center;
}

.login h1 a {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

/* Form Elements */
.login form {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.login label {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 16px;
}

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

/* Submit Button */
.login .button-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 10px;
}

.login .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

/* Remember Me & Forgot Password */
.login .forgetmenot {
    margin: 16px 0;
}

.login .forgetmenot label {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.login input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login #nav,
.login #backtoblog {
    text-align: center;
    margin: 20px 0 0;
    padding: 0;
}

.login #nav a,
.login #backtoblog a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error Messages */
.login .message,
.login #login_error {
    border-left: 4px solid #ff6b6b;
    background: #fff5f5;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login .message {
    border-left-color: #48bb78;
    background: #f0fff4;
    color: #22543d;
}

/* Language Switcher */
.login .language-switcher {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    #login {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login h1 a {
        height: 60px;
    }
}

/* Loading State */
.login .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Additional Polish */
.login p {
    margin-bottom: 16px;
}

.login .submit {
    margin-top: 20px;
}

/* Remove default WordPress login styling */
.login form .input,
.login input[type="text"],
.login input[type="password"] {
    font-family: inherit;
}


