/* public/css/auth.css */
:root {
  --primary: #4ade80;;
  --primary-dark: #10b981;
  --secondary: #7209b7;
  --secondary-dark: #6508a5;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #f59e0b;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
}

/* General Styles */
/* Login Page Specific Styles */
.login-page {
    height: 100vh;
    
}

.login-container {
    padding: 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 512px;
    overflow: hidden;
}

.login-header, .register-header {
    text-align: center;
    padding: .8rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.login-icon, .register-icon {
   width: 80px;
    height: 80px;
    margin: 1rem auto 1rem;
    background: linear-gradient(135deg, var(--success), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header h1 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.login-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.login-body {
    padding: .5rem 2rem;
}

.login-form {
    display: grid;
    gap: .5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .2rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.register-link {
   margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Demo Buttons */
.demo-buttons {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 1rem;
}

.demo-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn-superadmin {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.demo-btn-company {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
        min-height: calc(100vh - 132px);
    }
    
    .demo-buttons {
        flex-direction: column;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}






/* Vendor Registration Specific Styles */
.register-page {
    
    min-height: 100vh;
}

.register-container {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 76px); /* Adjust based on header height */
}

.register-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}




.register-header h1 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.register-body {
    padding: .5rem 2rem;
}

.register-form {
    display: grid;
    gap: .1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    margin: .5rem 0;
    color: var(--gray);
    font-weight: 500;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.section-divider::before {
    margin-right: 1rem;
}

.section-divider::after {
    margin-left: 1rem;
}

.form-row {
    display: flex;
    gap: .5rem;
}

.form-row .form-group {
    flex: 1;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
}

.input-group .confirm-icon {
    left: auto;
    right: 15px;
    color: var(--success);
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

.terms-group {
    margin: 1.5rem 0;
}

.terms-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.terms-label input {
    margin-right: 8px;
}

.terms-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.terms-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.terms-links a:hover {
    text-decoration: underline;
}

.register-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-submit-btn:hover {
    background: linear-gradient(135deg, #10b981, var(--success));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.social-login-section {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.social-divider {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.social-divider::before {
    margin-right: 1rem;
}

.social-divider::after {
    margin-left: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    background: white;
}

.social-btn.google-btn {
    color: #db4437;
}

.social-btn.facebook-btn {
    color: #1877f2;
}

.social-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.login-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.registration-closed {
    padding: 3rem 2rem;
    text-align: center;
}

.registration-closed h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .register-body {
        padding: 1.5rem 1rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}


/* Password Reset Page Styles */
.password-reset-page {
    background: #f8fafc;
    min-height: 100vh;
}

.password-reset-container {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 76px); /* Adjust based on header height */
}

.password-reset-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.password-reset-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.password-reset-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.password-reset-header h1 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.password-reset-body {
    padding: 1.5rem 2rem;
}

.password-reset-text {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-message {
    padding: 0.75rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.error-message {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.password-reset-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.password-reset-submit-btn:hover {
    background: linear-gradient(135deg, #f59e0b, var(--warning));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.back-to-login {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.back-to-login a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .password-reset-container {
        padding: 1rem;
        min-height: calc(100vh - 132px);
    }
    
    .password-reset-body {
        padding: 1.5rem 1rem;
    }
}


/* Password Reset Page Styles */
.password-reset-page {
    background: #f8fafc;
    min-height: 100vh;
}

.password-reset-container {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 76px); /* Adjust based on header height */
}

.password-reset-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.password-reset-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.password-reset-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--success), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.password-reset-header h1 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.password-reset-body {
    padding: 1.5rem 2rem;
}

.password-reset-text {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.password-reset-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.password-reset-submit-btn:hover {
    background: linear-gradient(135deg, #10b981, var(--success));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .password-reset-container {
        padding: 1rem;
        min-height: calc(100vh - 132px);
    }
    
    .password-reset-body {
        padding: 1.5rem 1rem;
    }
}