/* Account Pages Unified Styling - CustomerSignIn & CustomerSignUp */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #11998e 0%, #074d21 100%);
}


/* Particles Background */
#particles-js {
    position: fixed !important;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Main Container */
.account-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card Styling */
.account-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.signin-card {
    max-width: 450px;
}

/* Logo Styling */
.account-logo {
    text-align: center;
    margin-bottom: 30px;
}

.account-logo img {
    max-width: 90px;
    height: auto;
}

/* Header Styling */
.account-header {
    text-align: center;
    margin-bottom: 30px;
}

.account-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.account-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 0;
}

.account-subtitle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.account-subtitle a:hover {
    text-decoration: underline;
}

/* Form Styling */
.account-form {
    width: 100%;
}

.form-section {
    margin-bottom: 30px;
}

.section-header {
    background: linear-gradient(135deg, #0c5541, #7fc245);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
}

/* Input Group Styling */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
    min-height: 47px;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
}

/* Select Styling */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}



/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #0c5541, #326307);
    border: none;
    color: white;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Captcha Section */
.captcha-section {
    margin: 20px 0;
    text-align: center;
}

.captcha-section img {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 0;
}

/* Row and Column Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-col-2 {
    flex: 0 0 calc(50% - 10px);
}

.form-col-3 {
    flex: 0 0 calc(33.333% - 14px);
}

.form-col-4 {
    flex: 0 0 calc(32% - 1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-card {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-col,
    .form-col-2,
    .form-col-3,
    .form-col-4 {
        flex: none;
        width: 100%;
    }
    
    .account-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .account-container {
        padding: 10px;
    }
    
    .account-card {
        padding: 20px 15px;
    }
    
    .account-title {
        font-size: 22px;
    }
}

/* Spinner Styling */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation Error Styling */
.field-validation-error,
.field-validation-error span {
    color: #e53e3e !important;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Success Message Styling */
.success-message {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Alert Styling */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* Link Styling */
.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* OTP Section */
.otp-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
}

/* Hidden Elements */
.d-none {
    display: none !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}