:root {
    /* Nova Paleta de Cores */
    --primary-color: #139cbd;
    --secondary-color: #6b7280;
    --success-color: #70bcaa;
    --warning-color: #fab513;
    --danger-color: #ee7142;
    --info-color: #139cbd;
    --light-color: #f8fafc;
    --dark-color: #1f2937;
    
    /* Gradientes com Nova Paleta */
    --gradient-primary: linear-gradient(135deg, #139cbd 0%, #70bcaa 100%);
    --gradient-secondary: linear-gradient(135deg, #fab513 0%, #ee7142 100%);
    --gradient-success: linear-gradient(135deg, #70bcaa 0%, #139cbd 100%);
    --gradient-warning: linear-gradient(135deg, #fab513 0%, #ee7142 100%);
    --gradient-danger: linear-gradient(135deg, #ee7142 0%, #fab513 100%);
    
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@font-face {
    font-family: "font-main"; /* nome que você vai usar no CSS */
    src: url("../../../fonts/LufgaRegular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'font-main', sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/><circle cx="900" cy="800" r="80" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-container {
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.login-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.login-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.login-content {
    padding: 2rem;
}

.login-tabs {
    display: flex;
    background: var(--light-color);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(19, 156, 189, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(19, 156, 189, 0.1);
    background: white;
    outline: none;
}

.form-control.is-valid {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background: #fef2f2;
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
    z-index: 2;
}

.form-group.focused .form-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.custom-checkbox label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
    margin: 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(19, 156, 189, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login.loading {
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-footer {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.user-type-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.user-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.user-type-card:hover::before {
    left: 100%;
}

.user-type-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(19, 156, 189, 0.1) 0%, rgba(112, 188, 170, 0.1) 100%);
}

.user-type-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.user-type-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.user-type-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(238, 113, 66, 0.1) 0%, rgba(238, 113, 66, 0.05) 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(112, 188, 170, 0.1) 0%, rgba(112, 188, 170, 0.05) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-content {
        padding: 1.5rem;
    }
    
    .user-type-card {
        display: none;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 12px 14px 12px 44px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .login-tabs {
        flex-direction: row;
        gap: 4px;
    }
    
    .tab-button {
        padding: 10px 16px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .user-type-card {
        display: none;
    }
}

/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); background: var(--gradient-primary); }
    50% { transform: scale(1.05); background: var(--gradient-secondary); }
    100% { transform: scale(1); background: var(--gradient-primary); }
}