:root {
    --auth-primary: #4b8cca;  
    --auth-accent: #c3ca14;   
    --auth-text-dark: #333333;
    --auth-bg-light: #ffffff;
    --auth-border: #e0e0e0;
}

.auth-split-container {
    display: flex;
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    border: none;
    align-items: stretch;
    overflow: hidden;
}

.auth-info-side {
    flex: 1;
    padding: 50px;
    background-color: var(--auth-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-side {
    flex: 1;
    padding: 40px;
    background: #fff;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.auth-features li {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.auth-features i {
    color: var(--accent-color);
    margin-right: 10px;
}

.auth-form-side {
    flex: 1.2;
    padding: 50px;
}

.profile-wide-container {
    max-width: var(--container-width);
    margin: 40px auto;
}

.wide-section {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.section-side-title {
    width: 300px;
    padding: 30px;
    background: #fcfcfc;
    border-right: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-side-title h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    text-transform: uppercase;
}

.section-content {
    flex: 1;
    padding: 30px;
    display: none; /* ховаємо спочатку */
}

.profile-grid-form .form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.profile-grid-form input {
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.input-disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #888;
}

.btn-save {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
}

.btn-logout-wide {
    color: #d9534f;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.profile-cart {
    width: 100%;
}

.auth-card {
    background-color: var(--auth-bg-light);
    width: 100%;
    max-width: 480px; 
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--auth-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--auth-border);
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: bold;
    color: var(--auth-text-dark);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.auth-tab:hover {
    color: var(--auth-primary);
}

.auth-tab.active {
    color: var(--auth-primary);
    border-bottom-color: var(--auth-primary);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.input-group input:focus {
    border-color: var(--auth-primary);
    outline: none;
}

.required {
    color: red;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    color: #ffffff;
}

.btn-auth.btn-primary {
    background-color: var(--auth-primary);
}

.btn-auth.btn-primary:hover {
    background-color: #3d72a5;
}

.btn-auth.btn-accent {
    background-color: var(--auth-accent);
}

.btn-auth.btn-accent:hover {
    background-color: #aeb411;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-footer a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 40px; 
    cursor: pointer;
    color: #888;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .auth-split-container {
        flex-direction: column;
        margin: 20px;
    }
    
    .auth-info-side {
        padding: 30px;
        text-align: center;
    }
    
    .auth-features li {
        justify-content: center;
    }
}