/**
 * Estilos Customizados para Página de Login do WordPress
 * 
 * @package SecoviSiteAR
 */

/* Reset e Base */
body.login {
    background: linear-gradient(135deg, #1a2b4e 0%, #4a7bf5 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Container Principal */
#login {
    width: 100%;
    max-width: 420px;
    padding: 0;
    margin: 0 auto;
}

/* Logo do Site - Esconder fora do formulário */
.login h1 {
    display: none;
}

/* Logo dentro do formulário */
#loginform::before,
#registerform::before,
#lostpasswordform::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 250px;
    height: 60px;
    background-image: var(--login-logo-url, url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMTBoMTgwdjE4MEgxMHoiIGZpbGw9IiM0YTdiZjUiLz48cGF0aCBkPSJNNTAgNTBoMTAwdjEwMEg1MHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4='));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Se não houver logo customizado, usar logo padrão do WordPress */
.login h1 a:not([style*="background-image"]) {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMTBoMTgwdjE4MEgxMHoiIGZpbGw9IiM0YTdiZjUiLz48cGF0aCBkPSJNNTAgNTBoMTAwdjEwMEg1MHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=');
    background-size: contain;
}

/* Box de Login */
#loginform,
#registerform,
#lostpasswordform {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    padding-top: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    margin: 0;
    position: relative;
}

/* Mensagem de Desconexão */
.login .message {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4a7bf5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1a2b4e;
    font-size: 14px;
}

.login .error {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Labels */
.login form label {
    color: #1a2b4e;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Inputs */
.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1a2b4e;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.login form input[type="text"]:focus,
.login form input[type="password"]:focus,
.login form input[type="email"]:focus {
    outline: none;
    border-color: #4a7bf5;
    box-shadow: 0 0 0 3px rgba(74, 123, 245, 0.1);
}

/* Checkbox Lembrar-me */
.login form .forgetmenot {
    margin-bottom: 20px;
}

.login form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}

.login form input[type="checkbox"]:checked {
    background: #4a7bf5;
    border-color: #4a7bf5;
}

.login form label[for="rememberme"] {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Botão de Login */
.login form .submit {
    margin-top: 0;
}

.login form .button-primary {
    width: 100%;
    background: linear-gradient(135deg, #4a7bf5 0%, #1a2b4e 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(74, 123, 245, 0.3);
}

.login form .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 123, 245, 0.4);
    background: linear-gradient(135deg, #5b8aff 0%, #2a3c5e 100%);
}

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

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

.login #nav a,
.login #backtoblog a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login #nav a:hover,
.login #backtoblog a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Política de Privacidade */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 20px;
}

.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.login .privacy-policy-page-link a:hover {
    color: #ffffff;
}

/* Idioma - Posicionado no canto superior direito */
.login .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login .language-switcher label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-right: 0;
}

.login .language-switcher select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.login .language-switcher select option {
    background: #1a2b4e;
    color: #ffffff;
}

.login .language-switcher .button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login .language-switcher .button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsivo */
@media (max-width: 480px) {
    #loginform,
    #registerform,
    #lostpasswordform {
        padding: 30px 20px;
        padding-top: 90px;
    }
    
    #loginform::before,
    #registerform::before,
    #lostpasswordform::before {
        height: 50px;
        top: 20px;
    }
}

