/* ===================================================================================== */
/*                              LOGIN PAGE STYLES                                        */
/* ===================================================================================== */

/* Navbar transparente para login */
.navbar-transparent {
    background: transparent;
}

.navbar-transparent.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95)),
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1600') center/cover;
    z-index: -1;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.login-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

/* Tabs */
.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--accent-color);
}

.toggle-password i {
    font-size: 1.1rem;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.25rem;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength.weak::before {
    width: 33%;
    background: #e74c3c;
}

.password-strength.medium::before {
    width: 66%;
    background: #f39c12;
}

.password-strength.strong::before {
    width: 100%;
    background: #27ae60;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 0.7rem;
}

.checkbox-text {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.checkbox-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #f4d03f;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #f4d03f;
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--accent-color), #f4d03f);
    color: var(--primary-color);
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Social Login */
.social-login {
    margin-top: 2rem;
}

.divider-text {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.social-btn.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(244, 208, 63, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-content {
    text-align: center;
}

.info-content > i {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.info-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.benefits-list i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Footer Simple */
.footer-simple {
    background: rgba(26, 26, 46, 0.95);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-simple p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================================================================== */
/*                              RESPONSIVE LOGIN PAGE                                    */
/* ===================================================================================== */

/* Tablets (1024px) */
@media (max-width: 1024px) {
    .login-container {
        gap: 2rem;
    }
    
    .login-card {
        padding: 2.5rem;
    }
    
    .info-card {
        padding: 2.5rem;
    }
}

/* Tablets pequeñas (768px) */
@media (max-width: 768px) {
    .login-section {
        padding: 5rem 1.5rem 2rem;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
    }
    
    .login-logo i {
        font-size: 2.2rem;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .info-content > i {
        font-size: 3.5rem;
    }
    
    .info-content h2 {
        font-size: 1.8rem;
    }
    
    .benefits-list li {
        font-size: 1rem;
    }
}

/* Móviles grandes (600px) */
@media (max-width: 600px) {
    .login-section {
        padding: 5rem 1rem 2rem;
    }
    
    .login-card {
        padding: 1.75rem;
        border-radius: 20px;
    }
    
    .login-header {
        margin-bottom: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-logo {
        width: 65px;
        height: 65px;
        margin-bottom: 1.25rem;
    }
    
    .login-logo i {
        font-size: 2rem;
    }
    
    .login-tabs {
        gap: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
    
    .tab-btn i {
        font-size: 1rem;
    }
    
    .login-form {
        gap: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group input {
        padding: 0.9rem 1.1rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 1.75rem;
    }
    
    .info-content > i {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .info-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .benefits-list li {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .benefits-list i {
        font-size: 1.2rem;
    }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
    .login-section {
        padding: 4.5rem 1rem 1.5rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .login-logo i {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.35rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    
    .checkbox-text {
        font-size: 0.85rem;
    }
    
    .forgot-password {
        font-size: 0.85rem;
    }
    
    .btn-submit {
        padding: 0.95rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .social-btn {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-content > i {
        font-size: 2.5rem;
    }
    
    .info-content h2 {
        font-size: 1.5rem;
    }
    
    .benefits-list li {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .benefits-list i {
        font-size: 1.1rem;
    }
}

/* Móviles muy pequeños (375px) */
@media (max-width: 375px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        font-size: 0.85rem;
    }
    
    .form-group input {
        font-size: 0.88rem;
    }
    
    .btn-submit {
        font-size: 0.9rem;
    }
    
    .info-content h2 {
        font-size: 1.4rem;
    }
}

/* ===================================================================================== */
/*                          NOTIFICATION TOAST SYSTEM                                    */
/* ===================================================================================== */

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: -450px;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    min-width: 350px;
    max-width: 450px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent-color);
}

.notification-toast.show {
    right: 30px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content span {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-dark);
}

/* Notification Types */
.notification-success {
    border-left-color: #27ae60;
}

.notification-success .notification-content i {
    color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-warning {
    border-left-color: #f39c12;
}

.notification-warning .notification-content i {
    color: #f39c12;
}

.notification-info {
    border-left-color: var(--accent-color);
}

.notification-info .notification-content i {
    color: var(--accent-color);
}

/* Loading Spinner Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================================================================== */
/*                          RESPONSIVE NOTIFICATIONS                                     */
/* ===================================================================================== */

@media (max-width: 768px) {
    .notification-toast {
        min-width: calc(100% - 60px);
        max-width: calc(100% - 60px);
        right: -100%;
    }
    
    .notification-toast.show {
        right: 30px;
    }
}

@media (max-width: 480px) {
    .notification-toast {
        top: 80px;
        min-width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        padding: 1rem 1.25rem;
    }
    
    .notification-toast.show {
        right: 20px;
    }
    
    .notification-content {
        gap: 0.75rem;
    }
    
    .notification-content i {
        font-size: 1.3rem;
    }
    
    .notification-content span {
        font-size: 0.9rem;
    }
}