/* Estilos para templates de autenticação */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 28rem;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: linear-gradient(90deg, #af7004 0%, #8a5a03 100%);
}

.auth-header {
    padding: 2rem;
    text-align: center;
}

.auth-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #af7004 0%, #8a5a03 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(175, 112, 4, 0.3);
}

.auth-icon i {
    color: white;
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.auth-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-content {
    padding: 0 2rem 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #af7004;
    margin-right: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #af7004;
    box-shadow: 0 0 0 3px rgba(175, 112, 4, 0.1);
    background-color: white;
}

.form-input.has-icon {
    padding-right: 3rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-icon:hover {
    color: #6b7280;
}

.form-errors {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.form-errors p {
    display: flex;
    align-items: center;
    margin: 0;
}

.form-errors i {
    margin-right: 0.5rem;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #af7004 0%, #8a5a03 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(175, 112, 4, 0.3);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(175, 112, 4, 0.5);
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.info-box.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.info-box.warning {
    background: #fffbeb;
    border-color: #fed7aa;
}

.info-box.error {
    background: #fef2f2;
    border-color: #fecaca;
}

.info-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-title.success {
    color: #166534;
}

.info-title.warning {
    color: #92400e;
}

.info-title.error {
    color: #991b1b;
}

.info-title.info {
    color: #1e40af;
}

.info-text {
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.info-text.success {
    color: #166534;
}

.info-text.warning {
    color: #92400e;
}

.info-text.error {
    color: #991b1b;
}

.info-text.info {
    color: #1e40af;
}

.auth-footer {
    background: #f9fafb;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.auth-link {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link:hover {
    color: #d1d5db;
}

.copyright {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-align: center;
    z-index: 1000;
}

.success-icon {
    width: 6rem;
    height: 6rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon.bounce {
    animation: bounce 1s infinite;
}

.success-icon.pulse {
    animation: pulse 2s infinite;
}

.error-icon {
    width: 6rem;
    height: 6rem;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.step-number {
    background: #16a34a;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.requirement-item i {
    margin-right: 0.5rem;
    color: #16a34a;
}

/* Animações */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividade */
@media (max-width: 640px) {
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        border-radius: 0.5rem;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .auth-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .auth-icon i {
        font-size: 1.25rem;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .success-icon,
    .error-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .copyright {
        bottom: 0.5rem;
        font-size: 0.625rem;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover {
        transform: none;
    }
    
    .success-icon.bounce,
    .success-icon.pulse {
        animation: none;
    }
}

/* Modo escuro (se necessário no futuro) */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .auth-title {
        color: #f9fafb;
    }
    
    .auth-description {
        color: #d1d5db;
    }
    
    .form-label {
        color: #e5e7eb;
    }
    
    .form-input {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .form-input:focus {
        background-color: #4b5563;
    }
    
    .auth-footer {
        background: #111827;
        border-color: #374151;
    }
    
    .auth-footer p {
        color: #9ca3af;
    }
}