/* Custom Login Page Styles - Plugins for Sports Futbol */

/* Background */
body.login {
    background: linear-gradient(135deg, #1a3a6c 0%, #0d47a1 50%, #1a73e8 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Login Container */
body.login div#login {
    width: 420px;
    padding: 0;
}

/* Logo area */
body.login div#login h1 a {
    background-image: none !important;
    text-indent: 0;
    width: auto;
    height: auto;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

body.login div#login h1 a::before {
    content: "🔒";
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
}

/* Login Form */
body.login form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid #e0e0e0;
    padding: 40px;
    margin-top: 20px;
    overflow: visible;
}

/* Form labels */
body.login label {
    color: #555;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: block;
}

/* Input fields */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
    margin-bottom: 20px;
    box-shadow: none;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    outline: none;
    border-color: #1a73e8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Password reset specific */
body.login .reset-pass-submit {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body.login .reset-pass-submit .button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    text-shadow: none;
    height: auto;
    line-height: normal;
    float: none;
}

body.login .reset-pass-submit .button:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

/* Submit Button */
body.login .button-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    text-shadow: none;
    height: auto;
    line-height: normal;
    float: none;
}

body.login .button-primary:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

body.login .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

/* Secondary buttons */
body.login .button-secondary {
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    color: #555 !important;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

body.login .button-secondary:hover {
    background: #e8f4f8 !important;
    border-color: #1a73e8 !important;
    color: #1a73e8 !important;
    transform: translateY(-2px);
}

/* Remember me */
body.login .forgetmenot {
    margin-bottom: 20px;
}

body.login .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #666;
    font-weight: normal;
}

body.login input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
}

/* Links */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 0;
}

body.login #nav a,
body.login #backtoblog a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s;
}

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

/* Messages */
body.login .message,
body.login #login_error {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

body.login .message {
    border-left: 4px solid #1a73e8;
}

body.login #login_error {
    border-left: 4px solid #dc3545;
}

/* Password strength meter */
body.login .pw-weak .button.button-secondary {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

body.login .indicator-hint {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

/* Language switcher */
body.login .language-switcher {
    margin-top: 20px;
    text-align: center;
}

body.login .language-switcher label {
    color: rgba(255, 255, 255, 0.8);
    display: inline;
}

body.login .language-switcher select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9em;
}

body.login .language-switcher input.button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

body.login .language-switcher input.button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Privacy policy link */
body.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 15px;
}

body.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}

body.login .privacy-policy-page-link a:hover {
    color: white;
}

/* Responsive */
@media screen and (max-width: 480px) {
    body.login div#login {
        width: 90%;
        margin: 20px auto;
    }
    
    body.login form {
        padding: 25px 20px;
    }
    
    body.login div#login h1 a {
        font-size: 1.5em;
    }
    
    body.login input[type="text"],
    body.login input[type="password"],
    body.login input[type="email"] {
        padding: 12px 14px;
    }
    
    body.login .button-primary,
    body.login .reset-pass-submit .button {
        padding: 14px;
    }
}
