:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --border-color: #dcdde1;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--light-bg);
    color: var(--text-color);
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.login-box {
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 60px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.login-header h2 {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.input-icon {
    position: relative;
    display: block;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 2;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 2;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.forgot-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

button {
    background: var(--secondary-color);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

.btn-mobile-login {
    background: #27ae60;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-mobile-login i {
    font-size: 20px;
}

.login-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.login-divider:before,
.login-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: #ddd;
}

.login-divider:before {
    left: 0;
}

.login-divider:after {
    right: 0;
}

.login-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.register-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

.register-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Flag-based language selector - Updated with new spacing */
.flag-language-selector {
    margin-top: 10px;
    text-align: center;
}

.lang-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.lang-divider:before,
.lang-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: #ddd;
}

.lang-divider:before {
    left: 0;
}

.lang-divider:after {
    right: 0;
}

.lang-divider span {
    background: white;
    padding: 0 10px;
    color: #888;
    font-size: 12px;
}

.flags {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 15px;
}

.flag-item {
    display: inline-block;
    transition: all 0.2s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

.flag-item.active {
    opacity: 1;
    transform: scale(1);
}

.flag-item:hover {
    opacity: 1;
    transform: scale(1);
}

.flag-item img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Remove existing language selector in top right */
.language-selector {
    display: none;
}

/* Forgot password link styling - updated to match register link */
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.forgot-password-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.accordion-section {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    background: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 20px;
    display: none;
}

.accordion-section.active .accordion-content {
    display: block;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-section.active .accordion-header i {
    transform: rotate(180deg);
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.form-links a:hover {
    color: var(--primary-color);
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fff3f3;
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background: #f0fff0;
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

/* Admin Panel Styles */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--primary-color);
    color: white;
    padding: 20px;
}

.content {
    padding: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.modal {
    display: none;
}

/* QR code related styles have been removed */

/* Add responsive styles */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 40px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
}

/* Register Page Styles */
.register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.register-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.register-box {
    padding: 40px;
    max-width: 100%;
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    font-size: 60px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.register-header h2 {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* Accordion styling updates */
.accordion-section {
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-section:hover {
    border-color: #e0e0e0;
}

.accordion-section.active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.accordion-header {
    background: #f8f9fa;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
    color: var(--primary-color);
}

.accordion-header:hover {
    background: #edf2f7;
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.accordion-header span i {
    font-size: 18px;
    color: var(--secondary-color);
}

.accordion-content {
    padding: 25px 20px;
    display: none;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.accordion-section.active .accordion-content {
    display: block;
}

.accordion-section.active .accordion-header {
    background: #edf2f7;
    border-bottom: 1px solid var(--border-color);
}

/* Form styles for register */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
    min-width: 0;
}

.form-check {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.form-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.form-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232c3e50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.btn-submit {
    background: var(--secondary-color);
    margin-top: 25px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-submit:hover {
    background: var(--primary-color);
}

.login-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 15px;
}

.login-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Form input error states */
.form-group input.error,
.form-group select.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

/* Register form specific styles */
.register-form {
    max-width: 550px;
}

.register-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #999;
    position: relative;
    font-weight: 600;
    font-size: 14px;
}

.tab-item.active {
    color: var(--secondary-color);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.register-step {
    min-height: 250px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-group.half {
    flex: 1;
    min-width: 0;
}

.btn-prev {
    background-color: #95a5a6;
    flex: 1;
}

.btn-next {
    background-color: var(--secondary-color);
    flex: 1;
}

.btn-prev:hover, .btn-next:hover {
    background-color: var(--primary-color);
}

.checkbox-field.remember-me {
    margin: 20px 0;
}

/* Step 2 form specific icon styles to match screenshot */
#step2 .input-icon i, 
#step3 .input-icon i {
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .register-box {
        padding: 30px 20px;
    }

    .register-header h1 {
        font-size: 40px;
    }

    .register-header h2 {
        font-size: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }
}

/* Split login container styles */
.split-container {
    display: flex;
    max-width: 1200px;
    height: 650px;
    margin: 0 auto;
}

.login-info {
    flex: 1;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    border-radius: 15px 0 0 15px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.login-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.info-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo-area img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.logo-area h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-info h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 400px;
    line-height: 1.2;
}

.info-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-item i {
    font-size: 18px;
    background-color: rgba(52, 152, 219, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.benefit-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.login-form-container {
    flex: 1;
    background: white;
    border-radius: 0 15px 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments for split layout */
@media (max-width: 1100px) {
    .split-container {
        flex-direction: column;
        height: auto;
    }
    
    .login-info, 
    .login-form-container {
        border-radius: 15px;
        width: 100%;
    }
    
    .login-info {
        border-radius: 15px 15px 0 0;
        padding: 40px 30px;
    }
    
    .login-form-container {
        border-radius: 0 0 15px 15px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .login-info {
        padding: 30px 20px;
    }
    
    .login-info h1 {
        font-size: 28px;
    }
    
    .benefit-item {
        gap: 10px;
    }
    
    .benefit-item i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .benefit-item h3 {
        font-size: 16px;
    }
    
    .benefit-item p {
        font-size: 13px;
    }
}

/* Product Grid and List View Styles */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.products-container.list-view {
    grid-template-columns: 1fr;
}

.product-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.list-view .product-item {
    flex-direction: row;
    align-items: center;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.list-view .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.list-view .product-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 200px);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.list-view .product-title {
    font-size: 18px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    margin-top: auto;
    color: var(--secondary-color);
}

.product-description {
    display: none;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.list-view .product-description {
    display: block;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.list-view .product-meta {
    flex: 0 0 200px;
    align-items: flex-end;
    justify-content: center;
}

.view-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.view-buttons .btn {
    padding: 8px 15px;
    background-color: #f5f6fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-buttons .btn i {
    font-size: 16px;
    color: #777;
}

.view-buttons .btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.view-buttons .btn.active i {
    color: white;
}

/* Add button styles */
.product-item .btn-add-to-cart {
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-item .btn-add-to-cart:hover {
    background-color: var(--primary-color);
}

.list-view .product-item .btn-add-to-cart {
    margin-top: 15px;
}
