/* Estilos específicos para autenticación */
.auth-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.auth-title {
    color: #1a1a2e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00adb5;
    box-shadow: 0 0 0 3px rgba(0,173,181,0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 20%;
    background-color: #dc3545;
    border-radius: 2px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.forgot-password {
    color: #00adb5;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.auth-divider span {
    padding: 0 1rem;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.message.error {
    background-color: #fee;
    color: #dc3545;
    border: 1px solid #fcc;
    display: block;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-check input[type="checkbox"] {
    margin-top: 0.25rem;
}

.form-check label {
    color: #333;
    line-height: 1.4;
}

.form-check a {
    color: #00adb5;
    text-decoration: none;
}

.form-check a:hover {
    text-decoration: underline;
}

.auth-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.auth-info h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: #333;
}

.benefits-list li::before {
    content: '✓';
    color: #00adb5;
    font-weight: bold;
    margin-right: 10px;
}

.security-note {
    background-color: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    font-size: 0.9rem;
}

.security-note strong {
    color: #1a237e;
}

.back-home {
    color: #00adb5;
    text-decoration: none;
    font-weight: 500;
}

.back-home:hover {
    text-decoration: underline;
}

/* Dashboard específico */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
}

.dashboard-sidebar {
    background-color: #1a1a2e;
    color: white;
    padding: 2rem 1rem;
}

.user-profile {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2d3047;
    margin-bottom: 2rem;
}

.avatar {
    width: 80px;
    height: 80px;
    background-color: #00adb5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

.member-since {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sidebar-link {
    color: #ddd;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #00adb5;
    color: white;
}

.sidebar-stats {
    background-color: #2d3047;
    padding: 1.5rem;
    border-radius: 10px;
}

.sidebar-stats h4 {
    margin-bottom: 1rem;
    color: #00adb5;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 2rem;
    background-color: #f8f9fa;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.security-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.security-level.high {
    background-color: #d4edda;
    color: #155724;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.courses-progress {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.course-progress-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #00adb5;
    border-radius: 4px;
    transition: width 0.5s;
}

.recommended-courses {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.recommended-courses h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.recommended-courses ul {
    list-style: none;
    margin-top: 1rem;
}

.recommended-courses li {
    margin-bottom: 0.5rem;
}

.recommended-courses a {
    color: #00adb5;
    text-decoration: none;
}

.recommended-courses a:hover {
    text-decoration: underline;
}

.settings-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
}

.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
}

.danger-zone h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.danger-zone p {
    color: #666;
    margin-bottom: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#userGreeting {
    color: #00adb5;
    font-weight: 500;
}

.btn-logout {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: #dc3545;
    color: white;
}


