/* ZHZ Marktplatz - Login & Registration Styles */

.zhz-login-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.zhz-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.zhz-alert-error {
    background: #fee;
    border: 1px solid #c33;
    color: #c33;
}

.zhz-alert-error p {
    margin: 5px 0;
}

.zhz-alert-success {
    background: #efe;
    border: 1px solid #3c3;
    color: #3c3;
}

.zhz-alert-success p {
    margin: 0;
}

.zhz-login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.zhz-login-box,
.zhz-register-box {
    background: #fff;
    padding: 30px;
    /*border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}

.zhz-login-box h2,
.zhz-register-box h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.zhz-form-group {
    margin-bottom: 20px;
}

.zhz-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.zhz-form-group input[type="text"],
.zhz-form-group input[type="email"],
.zhz-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.zhz-form-group input[type="text"]:focus,
.zhz-form-group input[type="email"]:focus,
.zhz-form-group input[type="password"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.zhz-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.zhz-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.zhz-checkbox-label span {
    color: #666;
}

.zhz-btn-login {
    width: 100%;
    padding: 14px;
    background: #0085DC;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.zhz-btn-login:hover {
    background: #0465a5;
}

.zhz-btn-register {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.zhz-btn-register:hover {
    background: #218838;
}

.zhz-forgot-password {
    margin: 20px 0 0 0;
    text-align: center;
    color: #666;
}

.zhz-forgot-password a {
    color: #0085DC;
    text-decoration: none;
}

.zhz-forgot-password a:hover {
    text-decoration: underline;
}

.zhz-terms-text {
    margin: 20px 0 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.zhz-terms-text a {
    color: #0066cc;
text-decoration:none
}

.zhz-terms-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zhz-login-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .zhz-login-page {
        margin: 20px auto;
		padding:0
    }
    
    .zhz-login-box,
    .zhz-register-box {
        padding: 0;
    }
}


/* Toggle Form Styles */
.zhz-toggle-form {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.zhz-toggle-form a {
    color: #0085DC;
    font-weight: 500;
    text-decoration: none;
}

.zhz-toggle-form a:hover {
    text-decoration: underline;
}

/* Helper Class */
.zhz-hidden {
    display: none;
}

/* Single Column Layout when toggle is active */
.zhz-login-container.zhz-single-column {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile: Always single column */
@media (max-width: 768px) {
    .zhz-login-container {
        grid-template-columns: 1fr !important;
    }
}

/* Live Validation */
.zhz-validation-message {
    display: none;
    font-size: 13px;
    margin-top: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.zhz-validation-message.show {
    display: block;
}

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

.zhz-validation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.zhz-validation-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.zhz-validation-message.checking {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Password Strength Indicator */
.zhz-password-strength {
    margin-top: 8px;
}

.zhz-password-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.zhz-password-strength-bar-inner {
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.zhz-password-strength-bar-inner.weak {
    width: 33%;
    background: #dc3545;
}

.zhz-password-strength-bar-inner.medium {
    width: 66%;
    background: #ffc107;
}

.zhz-password-strength-bar-inner.strong {
    width: 100%;
    background: #28a745;
}

.zhz-password-strength-text {
    font-size: 13px;
    font-weight: 500;
}

.zhz-password-strength-text.weak {
    color: #dc3545;
}

.zhz-password-strength-text.medium {
    color: #ffc107;
}

.zhz-password-strength-text.strong {
    color: #28a745;
}
