/* login_styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Ensure login page can override hiding styles */
#loginLandingPage[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
}

/* Remove any conflicting styles when shown */
#loginLandingPage:not([style*="display: none"]) {
    display: block;
}

/* Login Landing Page Styles */
.login-landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #14161C 0%, #23252C 50%, #1a1c22 100%);
    color: #F4F4F4;
    overflow: hidden;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

/* Header with Logo */
.login-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    background: rgba(20, 22, 28, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(114, 216, 239, 0.1);
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(114, 216, 239, 0.3);
}

.header-logo-text {
    font-family: 'Righteous', cursive;
    font-size: 24px;
    color: #72D8EF;
    font-weight: bold;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #72D8EF;
    border-radius: 50%;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Auth Pages */
.auth-page {
    display: none;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 10;
    padding-top: 100px; /* Increased from 80px to give more space */
}

.auth-page.active {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    padding-top: 120px; /* Additional top padding */
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Use Cases Showcase */
.use-cases-showcase {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    padding: 30px; /* Increased padding */
    background: rgba(35, 37, 44, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(114, 216, 239, 0.1);
    backdrop-filter: blur(10px);
    min-height: 140px; /* Ensure minimum height */
}

.use-case-carousel {
    position: relative;
    height: 100px; /* Reduced height since icon is inline */
    overflow: hidden;
}

.use-case-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.use-case-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.use-case-icon {
    font-size: 24px; /* Reduced size */
    margin-right: 12px; /* Space between icon and text */
    display: inline; /* Changed from block to inline */
}

.use-case-slide h4 {
    font-size: 20px; /* Slightly larger */
    color: #72D8EF;
    margin-bottom: 12px; /* Increased margin */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-slide p {
    color: #B0B3B8;
    line-height: 1.4;
    font-size: 15px; /* Slightly larger */
    margin: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(114, 216, 239, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #72D8EF;
    transform: scale(1.2);
}

.auth-card {
    background: rgba(35, 37, 44, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(114, 216, 239, 0.1);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* Typography */
.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #F4F4F4;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 18px;
    color: #B0B3B8;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Forms */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 18px;
    background: rgba(20, 22, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #F4F4F4;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #72D8EF;
    box-shadow: 0 0 0 3px rgba(114, 216, 239, 0.1);
    background: rgba(20, 22, 28, 0.9);
}

.form-input::placeholder {
    color: #8A8B8C;
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    text-align: left;
    padding-left: 4px;
}

.requirement {
    font-size: 13px;
    color: #8A8B8C;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.requirement.valid {
    color: #4CAF50;
}

/* Buttons */
.primary-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #72D8EF 0%, #5ab0bf 100%);
    border: none;
    border-radius: 12px;
    color: #14161C;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 216, 239, 0.4);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    display: none;
}

.primary-button.loading .button-text {
    display: none;
}

.primary-button.loading .button-loading {
    display: inline;
}

.social-button {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #F4F4F4;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.google-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Logout Button for Sidebar */
.logout-button {
    background-color: rgba(244, 67, 54, 0.1) !important;
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336 !important;
    padding: 12px 16px;
    margin: 8px 0;
    text-align: left;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-top: auto;
    margin-bottom: 10px;
    /* order: 10; Ensure it comes after nav buttons */
}

.logout-button:hover {
    background-color: rgba(244, 67, 54, 0.2) !important;
    color: #ff6b6b !important;
    transform: translateX(5px);
}

.sidebar.collapsed .logout-button {
    justify-content: center;
    padding: 12px 8px;
}

.sidebar.collapsed .logout-button span:last-child {
    display: none;
}

/* Divider */
.auth-divider {
    margin: 28px 0;
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    background: rgba(35, 37, 44, 0.9);
    padding: 0 16px;
    color: #8A8B8C;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Footer */
.auth-footer {
    margin-top: 28px;
    font-size: 15px;
    color: #8A8B8C;
}

.link-button {
    color: #72D8EF;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.link-button:hover {
    color: #5ab0bf;
    text-decoration: underline;
}

/* Messages */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-header {
        padding: 15px 20px;
    }
    
    .header-logo-image {
        width: 35px;
        height: 35px;
    }
    
    .header-logo-text {
        font-size: 20px;
    }
    
    .auth-page {
        padding-top: 90px; /* Adjusted for mobile */
    }
    
    .auth-page.active {
        padding-top: 100px; /* Adjusted for mobile */
    }
    
    .auth-container {
        padding: 16px;
        max-width: none;
    }
    
    .auth-card {
        padding: 40px 30px;
        border-radius: 12px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 16px;
    }
    
    .use-cases-showcase {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .use-case-slide h4 {
        font-size: 18px;
    }
    
    .use-case-slide p {
        font-size: 14px;
    }
    
    .use-case-icon {
        font-size: 20px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        margin: 0 8px;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .use-cases-showcase {
        margin: 0 -8px 20px -8px;
        border-radius: 12px;
        padding: 20px 15px;
    }
    
    .auth-page.active {
        padding-top: 90px;
    }
    
    .use-case-slide h4 {
        font-size: 16px;
    }
    
    .use-case-icon {
        font-size: 18px;
        margin-right: 6px;
    }
}


/* Add these styles to styles_login.css */

/* Last Used Method Indicator */
.last-used-indicator {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    animation: fadeInScale 0.4s ease;
}

.last-used-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.last-used-icon {
    color: #4CAF50;
    font-size: 16px;
    font-weight: bold;
}

.last-used-text {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
}

/* Social Button Updates */
.social-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    position: relative;
}

.social-button-text {
    flex: 1;
    text-align: center;
}

.last-used-badge {
    position: absolute;
    right: 0;
    background: #4CAF50;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    animation: fadeInScale 0.3s ease;
    white-space: nowrap;
}

/* Enhanced Social Button Styling */
.social-button {
    position: relative;
    overflow: visible;
}

.social-button.last-used {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.05);
}

.social-button.last-used:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.4);
}

/* Animation for indicators */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for last used method */
.last-used-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .last-used-badge {
        position: static;
        margin-left: auto;
        margin-top: 0;
    }
    
    .social-button-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .last-used-text {
        font-size: 13px;
    }
}