/* Estilos base */
:root {
    --primary-color: #25D366;
    --dark-bg: #111b21;
    --card-bg: rgba(17, 27, 33, 0.95);
    --text-color: #e9edef;
    --input-bg: #2a3942;
    --error-color: #f15c6d;
    --success-color: #25D366;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(45deg, #0f1f2e, #1a2c3d);
    min-height: 100vh;
}

.wa-dashboard {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: url('/assets/images/wa-bg-pattern.png') center/cover;
}

.wa-auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.wa-auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wa-auth-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.wa-auth-header p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 1.1rem;
}

/* Logo WhatsApp (opcional) */
.wa-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Formulário */
.wa-form-group {
    margin-bottom: 1.5rem;
}

.wa-form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.wa-form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wa-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

/* Campo de senha */
.wa-password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

/* Opções de login */
.wa-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.wa-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.wa-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--primary-color);
}

.wa-forgot-pass {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.wa-forgot-pass:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Botões */
.wa-btn-modern {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.wa-btn-modern:hover {
    background: #1fa855;
    transform: translateY(-2px);
}

/* Link para cadastro */
.wa-register-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-register-link p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.wa-btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wa-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensagens de erro */
.wa-error-message {
    background: rgba(241, 92, 109, 0.1);
    border-left: 4px solid var(--error-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .wa-dashboard {
        padding: 15px;
    }

    .wa-auth-container {
        padding: 2rem;
        border-radius: 20px;
    }

    .wa-auth-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .wa-auth-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .wa-auth-header h2 {
        font-size: 1.6rem;
    }

    .wa-form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .wa-form-group input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .wa-btn-modern {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .wa-logo {
        width: 60px;
        height: 60px;
    }
}

/* Estados de foco e hover */
input:focus::placeholder {
    color: transparent;
}

.wa-form-group input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loading state */
.wa-btn-modern.loading {
    position: relative;
    color: transparent;
}

.wa-btn-modern.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wa-register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 20px;
}

.wa-register-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.wa-register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wa-register-header h2 {
    color: #25D366;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wa-register-header p {
    color: #ffffff;
    opacity: 0.8;
}

.wa-form-group {
    margin-bottom: 1.5rem;
}

.wa-form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.wa-form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.wa-form-group input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.wa-password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #25D366;
}

.wa-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.wa-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.wa-remember input[type="checkbox"] {
    accent-color: #25D366;
}

.wa-forgot-pass {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wa-forgot-pass:hover {
    color: #25D366;
}

.wa-btn-register {
    width: 100%;
    padding: 1rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.wa-btn-register:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.wa-btn-register.loading {
    position: relative;
    color: transparent;
}

.wa-btn-register.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wa-login-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-login-link p {
    color: #ffffff;
    margin-bottom: 0;
}

.wa-login-link a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 480px) {
    .wa-register-box {
        padding: 1.5rem;
    }

    .wa-register-header h2 {
        font-size: 1.5rem;
    }

    .wa-form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
} 