/* Global Styles */
body.login,
.customer-portal-register {
    background: #F7F7F7;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Container Styles */
.login #login,
.customer-portal-register {
    width: 800px;
    max-width: 95%;
    margin: 2rem auto;
    padding: 8% 0 0;
}

/* Logo Styles - vereinheitlicht für Login und Register */
.login h1 a,
.customer-portal-register h1 a {
    background-image: url('https://stock.seabob.com/wp-content/uploads/2024/08/seabob-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 320px !important;
    height: 70px !important;
    padding-bottom: 30px;
    display: block;
    margin: 0 auto;
}

.customer-portal-register h1 img {
    max-width: 320px;
    height: 70px;
    object-fit: contain;
}

/* Form Containers */
.login form,
.register-form {
    background: #fff;
    padding: 4em;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.13);
    margin-top: 20px;
}

/* Form Elements */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"],
.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"] {
    width: 100%;
    padding: 8px;
    margin: 2px 6px 16px 0;
    font-size: 24px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.login label,
.register-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #72777c;
    font-weight: normal;
}

/* Buttons */
.login #wp-submit,
.register-form .button-primary {
    background-color: #383F49;
    width: 100%;
    padding: 0.8em;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login #wp-submit:hover,
.register-form .button-primary:hover {
    background-color: #4a525e;
}

/* Messages - Updated */
.message,
.registration-success,
.error-message,
#login_error,
.login #login_error {
    padding: 12px;
    margin: 0 0 20px 0;
    background-color: #fff;
    border-left: 4px solid #00a0d2;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

/* Message Styles */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-message {
    background-color: #f7fffa;
    border-left: 4px solid #46b450;
    color: #1b412b;
}

.error-message {
    background-color: #fff8f8;
    border-left: 4px solid #e4231a;
    color: #8a1f11;
}

.message p {
    margin: 0;
    padding: 0;
}

.message p + p {
    margin-top: 10px;
}

/* Spezifische Message-Typen */
.registration-success {
    border-left-color: #46b450;
    background: #f7fffa;
}

.error-message,
.login #login_error,
#login_error {
    border-left-color: #e4231a;
    background: #fff8f8;
}

/* Entferne doppelte Formatierung bei verschachtelten Fehlermeldungen */
.login #login_error div#login_error {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* Password Requirements */
.password-requirements {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-left: 4px solid #383F49;
    font-size: 0.9em;
}

.password-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.requirement {
    color: #72777c;
    padding: 3px 0;
    font-size: 13px;
}

.requirement:before {
    content: '•';
    margin-right: 5px;
    color: #72777c;
}

.requirement.met {
    color: #46b450;
}

.requirement.met:before {
    content: '✓';
}

/* Navigation */
.custom-nav,
.login-link {
    text-align: center;
    margin-top: 20px;
}

.custom-nav a,
.login-link a {
    color: #383F49;
    text-decoration: none;
    font-size: 14px;
}

.custom-nav a:hover,
.login-link a:hover {
    color: #4a525e;
}

/* Hide Elements */
.login #backtoblog,
.login #nav,
.login .language-switcher,
.login .forgetmenot,
.login .privacy-policy-page-link {
    display: none;
}

/* Notices */
.approval-notice {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #383F49;
}

.approval-notice p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Form Grid Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

.form-row p {
    margin: 0;
}

.password-group {
    flex: 1;
}

/* Responsive */
@media screen and (max-width: 500px) {
    .login #login,
    .customer-portal-register {
        width: 90%;
    }

    .login form,
    .register-form {
        padding: 2em;
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .login form,
    .register-form {
        padding: 2em;
    }

    .login #login,
    .customer-portal-register {
        width: 95%;
    }
}