/* Login Page Specific Styles */

.login-section {
    padding: 120px 0 80px;
    background: var(--dark-bg);
    min-height: 100vh;
}

.login-container {
    max-width: 1000px;
    margin: 0 auto;
}

.login-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.login-form-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* New Login Options Styles */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.external-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 60px;
}

.btn-primary.btn-large {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 89, 89, 0.4);
}

.btn-secondary.btn-large {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary.btn-large:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-3px);
}

.btn-download.btn-large {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-download.btn-large:hover {
    border-color: var(--main-color);
    background: rgba(249, 89, 89, 0.1);
    transform: translateY(-3px);
}

.login-icon,
.download-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Touch-friendly interactions */
.btn-large:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Focus states for accessibility */
.btn-large:focus {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* Improved button text wrapping */
.btn-large {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure buttons are easily tappable on mobile */
@media (max-width: 768px) {
    .btn-large {
        min-height: 48px; /* Minimum touch target size */
        touch-action: manipulation;
    }
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--darker-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(249, 89, 89, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--main-color);
}

.forgot-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--secondary-color);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-social:hover {
    border-color: var(--main-color);
    background: rgba(249, 89, 89, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.register-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--secondary-color);
}

/* Login Info Section */
.login-info {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
}

.info-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.info-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Login Benefits Section */
.login-benefits {
    padding: 80px 0;
    background: var(--darker-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Login Security Section */
.login-security {
    padding: 80px 0;
    background: var(--dark-bg);
}

.security-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.security-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.security-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.security-list {
    list-style: none;
    padding: 0;
}

.security-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.security-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

.security-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Login Troubleshooting Section */
.login-troubleshooting {
    padding: 80px 0;
    background: var(--darker-bg);
}

.troubleshooting-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.troubleshooting-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.troubleshooting-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.troubleshooting-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for Login Page */
@media (max-width: 768px) {
    .login-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-form-container,
    .login-info {
        padding: 2rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .security-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-login {
        gap: 0.75rem;
    }
    
    .btn-social {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Mobile-friendly button styles */
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 55px;
        width: 100%;
        max-width: 100%;
    }
    
    .login-icon,
    .download-icon {
        width: 20px;
        height: 20px;
    }
    
    .login-options {
        gap: 1.5rem;
    }
    
    .login-buttons,
    .external-login {
        gap: 0.75rem;
    }
    
    /* Ensure full width on mobile */
    .login-buttons,
    .external-login {
        width: 100%;
    }
    
    /* Better spacing for mobile */
    .login-form-container {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 100px 0 60px;
    }
    
    .login-form-container,
    .login-info {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .info-title {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card,
    .troubleshooting-item {
        padding: 1.5rem;
    }
    
    /* Extra mobile-friendly button styles */
    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 50px;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .login-icon,
    .download-icon {
        width: 18px;
        height: 18px;
    }
    
    .login-options {
        gap: 1.25rem;
    }
    
    .login-buttons,
    .external-login {
        gap: 0.625rem;
        width: 100%;
    }
    
    .login-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Even better mobile spacing */
    .login-form-container {
        margin: 0 5px;
        padding: 1.25rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Animation for login form */
.login-form-container {
    animation: slideInLeft 0.6s ease-out;
}

.login-info {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form validation styles */
.form-input.error {
    border-color: #f95959;
    box-shadow: 0 0 0 3px rgba(249, 89, 89, 0.2);
}

.error-message {
    color: #f95959;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.success-message {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Loading state for login button */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}
