/* =========================================================================
   BRE LOGIN SCREEN (Apple / SaaS Style)
   ========================================================================= */

.bre-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bre-gray-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bre-login-box {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid var(--bre-border);
    box-sizing: border-box;
}

.bre-login-logo {
    max-height: 70px;
    margin-bottom: 20px;
    display: inline-block;
}

.bre-login-box h2 {
    margin: 0 0 30px 0;
    font-weight: 900;
    color: var(--bre-text-main);
    font-size: 24px;
    letter-spacing: -0.5px;
}

#bre-custom-login-form label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--bre-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: left;
}

#bre-custom-login-form input[type="text"],
#bre-custom-login-form input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid var(--bre-border);
    font-size: 16px;
    color: var(--bre-text-main);
    box-sizing: border-box;
    background: #f8fafc;
    transition: 0.2s;
}

#bre-custom-login-form input[type="text"]:focus,
#bre-custom-login-form input[type="password"]:focus {
    border-color: var(--bre-dark);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.05);
}

/* --- PASSWORT AUGE MODERN --- */
.bre-pw-toggle {
    position: absolute !important;
    right: 12px !important;
    bottom: 8px !important;
    cursor: pointer !important;
    color: var(--bre-text-muted) !important;
    background: transparent !important;
    border: none !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 10;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    outline: none !important;
}

.bre-pw-toggle:hover {
    background: rgba(30, 41, 59, 0.05) !important; 
    color: var(--bre-primary) !important;
}

/* --- CHECKBOX ALS MODERNES TOGGLE --- */
#bre-custom-login-form .login-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--bre-border);
}

#bre-custom-login-form .login-remember label {
    margin-bottom: 0;
    text-transform: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--bre-text-main);
}

/* Verstecke Standard Checkbox */
#bre-custom-login-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
}

#bre-custom-login-form input[type="checkbox"]:checked {
    background: var(--bre-success);
}

#bre-custom-login-form input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#bre-custom-login-form input[type="checkbox"]:checked::before {
    left: 20px;
}

/* Submit Button */
#bre-custom-login-form input[type="submit"] {
    width: 100%;
    background: var(--bre-primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bre-custom-login-form input[type="submit"]:hover {
    background: var(--bre-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(189,0,0,0.2);
}