/* Auth Styles - Clean and Simple */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Container */
.min-vh-100 {
    min-height: 100vh;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.col-12 {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 20px;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

/* Card */
.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 35px 40px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.8rem;
    color: white;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Access Options */
.access-options {
    margin-bottom: 30px;
}

.row.g-3 {
    gap: 15px;
}

.col-md-6 {
    flex: 1;
    min-width: 200px;
}

.option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.option-card .card-body {
    padding: 30px 20px;
    text-align: center;
}

.option-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px 0;
}

.option-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.h-100 {
    height: 100%;
}

/* Forms */
.auth-form {
    margin-bottom: 20px;
}

.d-none {
    display: none !important;
}

.mb-3 {
    margin-bottom: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    background: white;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #007bff;
}

.form-control::placeholder {
    color: #999;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: #333;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: #0056b3;
}

.btn-login:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    min-height: 50px;
    font-weight: 500;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.btn-close {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.copyright {
    color: #999;
    font-size: 0.8rem;
    line-height: 1.4;
}

.text-muted {
    color: #666 !important;
}

small.text-muted {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Validação Form - Layout específico */
#validateForm .form-group {
    margin-bottom: 25px;
}

#validateForm .alert {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

#validateForm .alert-info {
    padding: 15px 18px;
}

#validateForm small.text-muted {
    margin-top: 8px;
    line-height: 1.3;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Melhorar responsividade para telas menores */
@media (max-width: 768px) {
    .col-12 {
        padding: 15px;
        max-width: 100%;
    }
    
    .card-body {
        padding: 25px 20px;
    }
    
    #validateForm .alert-info {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}
