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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #009688;
}

.login-btn {
    background: transparent;
    border: 2px solid #009688;
    color: #009688;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #009688;
    color: white;
}

.logout-btn {
    background: transparent;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

/* Common Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #009688;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Phone number input styling */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: #009688;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.country-code-dropdown {
    display: flex;
    align-items: center;
    padding: 16px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #1f2937;
    font-weight: 500;
    min-width: 80px;
}

.country-flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    border-radius: 2px;
}

.phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.phone-input::placeholder {
    color: #9ca3af;
}

/* Password input with eye icon */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}

.password-toggle:hover {
    color: #374151;
}

/* Terms and conditions */
.terms-section {
    margin: 32px 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.terms-link {
    color: #009688;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: #009688;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* margin-bottom: 24px; */
}

.btn-primary:hover {
    background: #00796b;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 150, 136, 0.2);
}

/* Utility Classes */
.container-with-navbar {
    padding-top: 72px; /* Account for navbar height */
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    overflow: hidden;
    pointer-events: all;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #e5e7eb;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    min-width: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #374151;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
    min-width: auto;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.toast-progress {
    height: 3px;
    background: #f3f4f6;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: #6b7280;
    width: 100%;
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-success .toast-progress-bar {
    background: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-error .toast-progress-bar {
    background: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-warning .toast-progress-bar {
    background: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-info .toast-progress-bar {
    background: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 16px;
    }
    
    .navbar-right {
        gap: 12px;
    }
    
    .navbar-link {
        font-size: 14px;
    }
    
    .login-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Toast responsive */
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 12px;
    }
    
    .toast-content {
        padding: 14px 16px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}