/* Login Page Specific Styles */

/* Login Section */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-container {
    display: flex;
    max-width: 600px;
    width: 100%;
    z-index: 2;
    align-items: center;
    justify-content: center;
}

/* Login Card */
.login-card {
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.login-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Social Login Buttons */
.login-options {
    margin-bottom: 2rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    gap: 1rem;
}

.social-login-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-login-btn i {
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Login Form */
.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 15px;
    color: var(--text-tertiary);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.input-container .toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-speed) ease;
    z-index: 2;
    padding: 5px;
    border-radius: 3px;
}

.input-container .toggle-password:active {
    background: rgba(255, 255, 255, 0.1);
}

.input-container .toggle-password:hover {
    color: var(--text-secondary);
}

.input-container input {
    width: 100%;
    padding: 1rem 45px 1rem 50px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    box-sizing: border-box;
}

.input-container input[type="email"] {
    padding-right: 1rem;
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15), 0 4px 12px rgba(0, 102, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.input-container input::placeholder {
    color: var(--text-tertiary);
}

/* Remember Me Checkbox */
.remember-me {
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Login Button - Matching Try Syntia Button Design */
.login-submit-btn {
    width: 100%;
    padding: 1.1rem 1.75rem;
    border-radius: 180px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(
        135deg,
        rgb(255, 255, 255) 0%,
        #008cffa4 50%,
        rgb(254, 254, 255) 100%
    );
    background-size: 300% 300%;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4), 0 0 30px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 4s ease-in-out infinite;
}

.login-submit-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.5s ease;
}

.login-submit-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.login-submit-btn:hover {
    background: linear-gradient(
        135deg,
        rgb(255, 255, 255) 0%,
        #008cffa4 50%,
        rgb(254, 254, 255) 100%
    );
    background-size: 300% 300%;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    animation: gradientShift 1.5s ease-in-out infinite,
        buttonPulse 2s ease-in-out infinite;
}

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

.login-submit-btn:hover::after {
    width: 120px;
    height: 120px;
    opacity: 0.6;
}

.login-submit-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.login-submit-btn:focus {
    outline: none;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
        0 0 0 3px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gradientShift 1.5s ease-in-out infinite;
}

.login-submit-btn:focus:not(:hover) {
    transform: translateY(-2px);
}

/* Login Footer */
.login-footer {
    text-align: center;
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.login-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Circular Icons for Input Fields */
.input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 3;
    pointer-events: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.toggle-password {
    left: auto !important;
    right: 15px !important;
    cursor: pointer;
    pointer-events: auto !important;
    padding: 8px;
    transition: all var(--transition-speed) ease;
}

.toggle-password:hover {
    background: rgba(0, 102, 255, 0.2);
    color: var(--primary-color);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

/* Active Login Button in Navbar */
.login-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .login-section {
        padding: 150px 5% 80px;
    }
    
    .login-container {
        max-width: 1000px;
    }
    
    .login-card {
        padding: 2.5rem;
    }
    
    .login-features {
        padding: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .login-container {
        max-width: 500px;
    }
    
    .login-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Animations for Try Syntia Button Style */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(37, 99, 235, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 120px 5% 50px;
    }
    
    .login-card {
        padding: 2.5rem;
        max-width: 450px;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .social-login-btn {
        width: 100%;
        padding: 0.9rem;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 100px 5% 40px;
    }
    
    .login-card {
        padding: 2rem;
        max-width: 380px;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .social-login-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .social-login-btn i {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
    
    .input-container i {
        width: 18px;
        height: 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-card, .login-features {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .feature-item-icon {
        margin: 0 auto;
    }
    
    .feature-item-text p {
        font-size: 0.85rem;
    }
    
    .login-btn, .form-control {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .login-footer {
        font-size: 0.85rem;
    }
}

/* Handle landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .login-section {
        padding: 80px 5% 30px;
        min-height: auto;
    }
    
    .login-container {
        gap: 2rem;
    }
    
    .login-card, .login-features {
        padding: 1.5rem;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .login-header h2 {
        font-size: 1.7rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
}