/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #333333;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Top Right Actions (e.g., Home link) */
.top-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

/* Home Button (link styled as button) */
.home-btn {
    text-decoration: none;
    background: #25b9dc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.6rem 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.home-btn:hover {
    background: #25b9dc;
    border-color: #25b9dc;
    color: #ffffff;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Background - No Animation */

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

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

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #25b9dc, #25b9dc);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 185, 220, 0.3);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 300px;
    height: 150px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #25b9dc, #25b9dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.brand-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 400;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #25b9dc, #25b9dc);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 185, 220, 0.4);
}

.tab-btn:hover:not(.active) {
    color: #25b9dc;
    background: rgba(37, 185, 220, 0.1);
}

/* Form Container */
.form-container {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-container.active {
    display: block;
}

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

.form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: #ffffff;
}

.form-subtitle {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 2;
}

.auth-form input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-form input:focus {
    outline: none;
    border-color: #25b9dc;
    box-shadow: 0 0 0 3px rgba(37, 185, 220, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.auth-form input::placeholder {
    color: #64748b;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #25b9dc;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #94a3b8;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #25b9dc, #25b9dc);
    border-color: #25b9dc;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text a {
    color: #25b9dc;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #25b9dc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #25b9dc;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25b9dc, #25b9dc);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 185, 220, 0.4);
    margin-bottom: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 185, 220, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Social Login */
.social-login {
    width: 100%;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #64748b;
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.social-btn {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    outline: none;
}

.google-btn {
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.google-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.google-btn:hover .google-icon {
    transform: scale(1.1);
}

.google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.google-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none !important;
}

.google-btn:disabled .google-icon {
    transform: none !important;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.google-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Phone number validation styles */
.phone-status-icon {
    pointer-events: none;
    transition: all 0.3s ease;
}

.phone-status-icon.valid {
    color: #10b981 !important;
}

.phone-status-icon.invalid {
    color: #ef4444 !important;
}

/* Enhanced input focus states for phone validation */
.auth-form input[type="tel"]:focus {
    outline: none;
    border-color: #25b9dc;
    box-shadow: 0 0 0 3px rgba(37, 185, 220, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Phone input specific styles */
#phoneNumber {
    position: relative;
}

#phoneNumber.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#phoneNumber.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Phone number placeholder enhancement */
#phoneNumber::placeholder {
    color: #64748b;
    font-style: italic;
}

/* Phone help text */
.phone-help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(37, 185, 220, 0.1);
    border: 1px solid rgba(37, 185, 220, 0.2);
    border-radius: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.phone-help-text i {
    color: #25b9dc;
    font-size: 0.8rem;
}

.phone-help-text:hover {
    background: rgba(37, 185, 220, 0.15);
    border-color: rgba(37, 185, 220, 0.3);
}

/* Hide help text when phone is being typed and valid */
.form-group:has(#phoneNumber.valid) .phone-help-text {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Show help text more prominently when phone has error */
.form-group:has(#phoneNumber.invalid) .phone-help-text {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.form-group:has(#phoneNumber.invalid) .phone-help-text i {
    color: #ef4444;
}

/* Wave transition */
.wave-transition {
    width: 100%;
    height: 150px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.wave {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%2324a0de" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,170.7C384,181,480,171,576,144C672,117,768,75,864,69.3C960,64,1056,96,1152,112C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 0;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .auth-form input {
        padding: 14px 14px 14px 45px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .social-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .google-icon {
        width: 18px;
        height: 18px;
    }
    
    .phone-help-text {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .phone-help-text span {
        line-height: 1.4;
    }
}
