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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    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: #2c787a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.home-btn:hover {
    background: #2c787a;
    border-color: #2c787a;
    color: #ffffff;
}

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

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, #318f91, #2c787a);
    border-radius: 4px;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 20%;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 10%;
    animation-delay: 15s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 5%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(10px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

/* 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: 20px;
    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, #318f91, #2c787a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(49, 143, 145, 0.3);
    transition: transform 0.3s ease;
}

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

.logo {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #318f91, #2c787a);
    -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: 12px;
    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: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #318f91, #2c787a);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 143, 145, 0.4);
}

.tab-btn:hover:not(.active) {
    color: #318f91;
    background: rgba(49, 143, 145, 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: 12px;
    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: #318f91;
    box-shadow: 0 0 0 3px rgba(49, 143, 145, 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: #318f91;
}

/* 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: 4px;
    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, #318f91, #2c787a);
    border-color: #318f91;
}

.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: #318f91;
    text-decoration: none;
    font-weight: 500;
}

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

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

.forgot-password:hover {
    color: #2c787a;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #318f91, #2c787a);
    color: white;
    border: none;
    border-radius: 12px;
    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(49, 143, 145, 0.4);
    margin-bottom: 30px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 143, 145, 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: 12px;
    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: #318f91;
    box-shadow: 0 0 0 3px rgba(49, 143, 145, 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(49, 143, 145, 0.1);
    border: 1px solid rgba(49, 143, 145, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

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

.phone-help-text:hover {
    background: rgba(49, 143, 145, 0.15);
    border-color: rgba(49, 143, 145, 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;
}

/* Features Section */
.features-section {
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.features-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #318f91;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .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;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-section {
        margin-top: 30px;
    }
    
    .features-section h3 {
        font-size: 1.5rem;
    }
}

@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;
    }
} 
