* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c2c2c 0%, #6c6c6c 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Background */
.hero-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c2c2c 0%, #6c6c6c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 108, 108, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 44, 44, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.main-container {
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.25),
        0 16px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.header-section {
    background: linear-gradient(135deg, #d7e7f7 0%, #e4e2e2 100%);
    color: rgb(0, 0, 0);
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.logo-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.logo {
    display: block;
    width: 240px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: rgb(0, 0, 0);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.features-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    opacity: 1;
}

.feature-item i {
    font-size: 1.2rem;
    color: #4a4a4a;
}

.feature-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
}

.access-section, .register-section {
    padding: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2, .section-header h3 {
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
}

.section-header h2 {
    font-size: 1.4rem;
}

.section-header h3 {
    font-size: 1.2rem;
}

.section-description, .register-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    height: auto;
    min-height: 120px;
    text-align: center;
}

.btn-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-title {
    font-weight: 700;
    font-size: 1rem;
}

.btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 48px;
    min-width: 120px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn::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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a4a4a 0%, #6c6c6c 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(74, 74, 74, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2c2c2c 0%, #5a5a5a 100%);
    color: white;
    width: 100%;
    box-shadow: 0 8px 24px rgba(44, 44, 44, 0.3);
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
}

.btn-danger {
    background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(58, 58, 58, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2c2c2c;
    color: #2c2c2c;
    width: 100%;
    height: 52px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(44, 44, 44, 0.1);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    color: white;
    border-color: #2c2c2c;
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.form-container {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: #2c2c2c;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.input-group input:focus {
    outline: none;
    border-color: #4a4a4a;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.input-group input:focus + .input-border {
    transform: scaleX(1);
}

.input-group input:focus ~ i {
    color: #4a4a4a;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.help-text {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.pix-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pix-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pix-header h4 {
    color: #2c2c2c;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pix-header p {
    color: #666;
    font-size: 0.9rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 0 2rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.divider span {
    padding: 0 1rem;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    background: white;
}

.footer-section {
    padding: 2rem;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #2c2c2c;
}

.version-info {
    color: #999;
    font-size: 0.8rem;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .login-card {
        border-radius: 20px;
        margin: 10px;
    }
    
    .header-section {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .logo {
        width: 200px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .features-preview {
        gap: 1rem;
    }
    
    .feature-item span {
        font-size: 0.7rem;
    }
    
    .user-type-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .user-type-btn {
        min-height: 100px;
        padding: 1rem;
    }
    
    .access-section, .register-section {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .pix-section {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-background {
        padding: 10px;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    .btn-title {
        font-size: 0.9rem;
    }
    
    .btn-subtitle {
        font-size: 0.75rem;
    }
}