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

/* Background */
body.login {
    background: linear-gradient(rgba(244, 249, 254, 0.84), rgba(244, 249, 254, 0.84)), url('../assets/metal-stadium-background.png') center center / cover fixed no-repeat;
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #173b6b;
}

/* Login Container */
body.login div#login {
    width: min(420px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 48px 0 16px;
    background: #ffffff;
    border: 1px solid #d0deef;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(23, 59, 107, 0.12);
    overflow: hidden;
}

/* 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: #102b5d;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 14px;
}

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

/* Login Form */
body.login form {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    padding: 24px 32px 22px;
    margin-top: 14px;
    overflow: visible;
}

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

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

body.login .reset-pass-submit .button {
    width: 100%;
    padding: 13px 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: 13px 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: 14px;
}

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: #24558f;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s;
}

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

/* Messages */
body.login .message,
body.login #login_error {
    background: #ffffff;
    color: #173b6b;
    border-radius: 16px;
    border: 1px solid #d0deef;
    box-shadow: 0 8px 24px rgba(23, 59, 107, 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: #24558f;
    display: inline;
}

body.login .language-switcher select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #b9cde4;
    background: #ffffff;
    color: #173b6b;
    font-size: 0.9em;
}

body.login .language-switcher input.button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #b9cde4;
    background: #ffffff;
    color: #173b6b;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

body.login .language-switcher input.button:hover {
    background: #edf5fd;
    border-color: #1a73e8;
}

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

body.login .privacy-policy-page-link a {
    color: #24558f;
    font-size: 0.85em;
}

body.login .privacy-policy-page-link a:hover {
    color: #0d47a1;
}

/* Responsive */
@media screen and (max-width: 480px) {
    body.login div#login {
        width: calc(100% - 32px);
        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;
    }
}

/* Compact the native WordPress forms, whose default paragraph spacing is generous. */
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform,
body.login #resetpassform {
    padding: 20px 32px 16px !important;
}

body.login #loginform p,
body.login #registerform p,
body.login #lostpasswordform p,
body.login #resetpassform p {
    margin-top: 0;
    margin-bottom: 10px;
}

body.login #loginform p.submit,
body.login #registerform p.submit,
body.login #lostpasswordform p.submit,
body.login #resetpassform p.submit {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"],
body.login #registerform input[type="text"],
body.login #registerform input[type="email"],
body.login #registerform input[type="password"],
body.login #lostpasswordform input[type="text"],
body.login #lostpasswordform input[type="email"],
body.login #resetpassform input[type="password"] {
    min-height: 0 !important;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
}

body.login #loginform .forgetmenot {
    margin-bottom: 10px !important;
}

body.login #loginform .button-primary,
body.login #registerform .button-primary,
body.login #lostpasswordform .button-primary,
body.login #resetpassform .button-primary {
    min-height: 42px !important;
    padding: 11px 16px !important;
}
