/* ============================================
   EDRONA LMS - Login Page Styles
   ============================================ */

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 0;
}

.login-wrapper {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 95, 122, 0.15);
    max-width: 1050px;
    margin: 0 auto;
}

/* ============================================
   Left Side - Carousel
   ============================================ */
.login-left {
    flex: 1;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
    min-width: 50%;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float1 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float2 12s ease-in-out infinite;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 20%;
    animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 10px) scale(1.1); }
}

/* Carousel Content */
.carousel-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.slide-item {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.slide-item.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.slide-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto;
    color: #fff;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ============================================
   Right Side - Login Form
   ============================================ */
.login-right {
    flex: 1;
    padding: 35px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 50%;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 140px;
    margin-bottom: 16px;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Tab Toggle
   ============================================ */
.login-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.tab-btn i {
    font-size: 1rem;
}

/* ============================================
   Form Styles
   ============================================ */
.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-color);
    background: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* ============================================
   intl-tel-input Custom Styles
   ============================================ */
.iti {
    width: 100%;
}

.iti__tel-input,
.iti input[type="tel"] {
    width: 100%;
    padding: 12px 14px 12px 100px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-color);
    background: #fff;
    transition: all 0.3s ease;
}

.iti__tel-input:focus,
.iti input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.iti__country-container {
    padding-left: 12px;
}

.iti__selected-country {
    padding-right: 10px;
    border-radius: 10px 0 0 10px;
}

.iti__dropdown-content {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.iti__search-input {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
}

/* ============================================
   Password Field
   ============================================ */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-wrapper .form-input {
    padding-right: 48px;
}

/* ============================================
   Form Footer
   ============================================ */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-register {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3da99b 100%);
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 197, 182, 0.4);
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   Login Button
   ============================================ */
.btn-login-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit::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-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.4);
}

.btn-login-submit:hover::before {
    left: 100%;
}

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

/* ============================================
   Divider
   ============================================ */
.login-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    gap: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Social Login
   ============================================ */
.social-login {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

.btn-social:hover {
    border-color: var(--primary-light);
    background: rgba(26, 95, 122, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991px) {
    .login-section {
        padding: 100px 0 30px;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 480px;
    }

    .login-left {
        min-height: 260px;
        padding: 30px 25px;
        min-width: 100%;
    }

    .login-right {
        padding: 30px 25px;
        min-width: 100%;
    }

    .slide-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .slide-icon i {
        font-size: 2rem;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slide-description {
        font-size: 0.9rem;
    }

    .carousel-dots {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 90px 0 20px;
    }

    .login-left {
        padding: 25px 20px;
        min-height: 220px;
    }

    .login-right {
        padding: 25px 20px;
    }

    .login-logo {
        width: 120px;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .social-login {
        flex-direction: column;
    }

    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: center;
    }

    .carousel-dots {
        margin-top: 16px;
    }

    .slide-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .slide-icon i {
        font-size: 1.75rem;
    }

    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .slide-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}
