/* =============================================
   AGENDA BOT PRO - Login Page Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    position: relative;
}

/* Partículas animadas de fundo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(76, 175, 80, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Card de Login com Glassmorphism */
.login-card {
    background: rgba(30, 30, 45, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(76, 175, 80, 0.05);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo / Ícone */
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(76, 175, 80, 0.5); }
}

.login-logo .icon-circle svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.login-logo h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-logo p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 300;
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.3);
    transition: fill 0.3s;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.06);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input:focus + svg,
.form-group input:focus ~ svg {
    fill: #4CAF50;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Toggle senha */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.toggle-password svg {
    position: static;
    transform: none;
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.3);
    transition: fill 0.3s;
    pointer-events: auto;
}

.toggle-password:hover svg {
    fill: rgba(255, 255, 255, 0.6);
}

/* Botão de login */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerta de erro */
.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef5350;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
    text-align: center;
}

.alert-error.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rodapé */
.login-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
    }

    .login-logo .icon-circle {
        width: 64px;
        height: 64px;
    }

    .login-logo .icon-circle svg {
        width: 32px;
        height: 32px;
    }

    .login-logo h1 {
        font-size: 20px;
    }
}
