:root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary-color: #10b981;
    --accent-color: #ec4899;
    --dark-color: #0f172a;
    --darker-color: #020617;
    --light-color: #f8fafc;
    --light-muted: #94a3b8;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --glass-effect: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(139, 92, 246, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker-color);
    color: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
}

.gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(16, 185, 129, 0.1) 50%,
        rgba(139, 92, 246, 0.1) 100%
    );
    background-size: 200% 200%;
    animation: gradient-move 15s ease infinite;
    z-index: -1;
}

@keyframes gradient-move {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.auth-card {
    background: var(--glass-effect);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.auth-card:hover {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-brand img {
    height: 60px;
    margin-bottom: 0.5rem;
}

.logo-brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.auth-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-title p {
    color: var(--light-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* CORREÇÃO PARA O CAMPO DE SENHA */
.input-icon {
    position: relative;
    width: 100%;
}

.input-icon .input-icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-muted);
    font-size: 0.9rem;
    z-index: 2;
}

.input-icon .input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-muted);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 2;
}

.input-icon .input-icon-right:hover {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.85rem 3rem; /* Espaço para ambos os ícones */
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--light-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.form-control::placeholder {
    color: var(--light-muted);
    opacity: 0.7;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-text {
    transition: transform 0.3s ease;
}

.btn:hover .btn-text {
    transform: translateX(-3px);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--light-muted);
}

/* Alert styles */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    background-color: rgba(15, 23, 42, 0.7);
    border-left: 3px solid transparent;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.alert-danger {
    border-left-color: var(--danger-color);
    color: #fca5a5;
}

.alert-success {
    border-left-color: var(--success-color);
    color: #6ee7b7;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 3px solid var(--success-color);
}

.notification.error {
    border-left: 3px solid var(--danger-color);
}

.notification i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .logo-brand img {
        height: 50px;
    }
    
    .auth-title h2 {
        font-size: 1.3rem;
    }
}