/**
 * Login Shortcodes Styles
 * Noble Atlas Design System
 * 
 * @package Noble_Frontend_Display
 * @since 2.49.1
 */

/* ==================== CONTAINER ==================== */
.noble-login-shortcode-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.noble-login-form,
.noble-login-tabs-container {
    max-width: 500px;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(219, 193, 109, 0.2);
}

/* ==================== HEADER ==================== */
.noble-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.noble-login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #dbc16d;
    margin: 0 0 8px;
}

.noble-login-header p {
    color: rgba(248, 245, 240, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== TAB NAVIGATION ==================== */
.noble-login-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: rgba(219, 193, 109, 0.1);
    border-radius: 12px;
    padding: 4px;
}

.noble-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(248, 245, 240, 0.6);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.noble-tab-btn:hover {
    color: rgba(248, 245, 240, 0.9);
    background: rgba(219, 193, 109, 0.15);
}

.noble-tab-btn.active {
    background: #dbc16d;
    color: #01221c;
    box-shadow: 0 2px 8px rgba(219, 193, 109, 0.3);
}

/* ==================== TAB CONTENT ==================== */
.noble-tab-content {
    display: none;
}

.noble-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FORM ==================== */
.noble-login-form-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.noble-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noble-form-group label {
    color: #f8f5f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.noble-form-group input[type="text"],
.noble-form-group input[type="email"],
.noble-form-group input[type="password"],
.noble-form-input {
    padding: 12px 16px;
    background: rgba(248, 245, 240, 0.05);
    border: 1px solid rgba(219, 193, 109, 0.2);
    border-radius: 8px;
    color: #f8f5f0 !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.noble-form-group input:focus,
.noble-form-input:focus {
    outline: none;
    border-color: #dbc16d;
    background: rgba(248, 245, 240, 0.08);
    box-shadow: 0 0 0 3px rgba(219, 193, 109, 0.1);
    color: #f8f5f0 !important;
}

.noble-form-group input::placeholder {
    color: rgba(248, 245, 240, 0.3);
}

/* ==================== CHECKBOX ==================== */
.noble-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.noble-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(248, 245, 240, 0.8);
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
}

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

/* ==================== SUBMIT BUTTON ==================== */
.noble-btn-submit {
    padding: 14px 24px;
    background: linear-gradient(135deg, #dbc16d, #b8902d);
    border: none;
    border-radius: 8px;
    color: #01221c;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.noble-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(219, 193, 109, 0.4);
}

.noble-btn-submit:active {
    transform: translateY(0);
}

/* ==================== FOOTER LINKS ==================== */
.noble-login-links {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(219, 193, 109, 0.2);
}

.noble-login-link {
    margin: 8px 0;
}

.noble-login-link a {
    color: #dbc16d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.noble-login-link a:hover {
    text-decoration: underline;
    color: #ecd292;
}

/* ==================== LOGGED-IN MESSAGE ==================== */
.noble-login-message {
    text-align: center;
    padding: 20px;
    background: rgba(219, 193, 109, 0.1);
    border: 1px solid rgba(219, 193, 109, 0.3);
    border-radius: 8px;
    color: #f8f5f0;
}

.noble-login-message a {
    color: #dbc16d;
    text-decoration: underline;
    font-weight: 600;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 600px) {
    .noble-login-form,
    .noble-login-tabs-container {
        padding: 24px;
    }
    
    .noble-login-header h2 {
        font-size: 1.5rem;
    }
    
    .noble-login-tabs-nav {
        flex-direction: column;
    }
    
    .noble-tab-btn {
        width: 100%;
    }
}

/* ==================== DARK THEME COMPATIBILITY ==================== */
body.dark-mode .noble-login-form,
body.dark-mode .noble-login-tabs-container {
    background: rgba(10, 10, 10, 0.95);
}

body.dark-mode .noble-form-group input {
    background: rgba(248, 245, 240, 0.03);
}



/* ==================== PASSWORD RESET STYLING ==================== */

/* WordPress Default Login/Reset Forms */
#login {
    width: 100%;
    max-width: 700px;
    margin: 30px auto;
    padding: 15px;
}

#loginform,
#lostpasswordform {
    background: rgba(26, 26, 26, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(219, 193, 109, 0.2) !important;
    padding: 25px !important;
}

#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"] {
    padding: 12px 16px !important;
    background: rgba(248, 245, 240, 0.2) !important; /* Erhöht von 0.05 für besseren Kontrast */
    border: 1px solid rgba(219, 193, 109, 0.3) !important; /* Etwas stärker für bessere Sichtbarkeit */
    border-radius: 8px !important;
    color: #f8f5f0 !important;
    font-weight: 500 !important; /* Leicht fetter für bessere Lesbarkeit */
    width: 100% !important;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus {
    background: rgba(248, 245, 240, 0.25) !important; /* Noch heller im Focus */
    border-color: #dbc16d !important;
    box-shadow: 0 0 0 3px rgba(219, 193, 109, 0.2) !important;
    color: #f8f5f0 !important; /* Explizit setzen für besseren Kontrast */
}

#loginform .button-primary,
#lostpasswordform .button-primary {
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #dbc16d, #b8902d) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #01221c !important;
    font-weight: 700 !important;
    width: 100% !important;
}

body.login {
    background: #01221c !important;
}
