/**
 * Custom Login Block Styles
 */

/* Login Block Card */
.ccm-block-custom-login {
    background: #fff;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.ccm-block-custom-login .custom-login-form {
    width: 100%;
}

/* Form Labels */
.ccm-block-custom-login .form-label {
    font-weight: 500;
    color: #262F33;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Form Inputs */
.ccm-block-custom-login .form-control {
    border: 1px solid #cbd3da !important;
    border-radius: 0.25rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    background: #fff !important;
    color: #262F33 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ccm-block-custom-login .form-control:focus {
    border-color: #eb690b !important;
    box-shadow: 0 0 0 3px rgba(235, 105, 11, 0.15) !important;
    outline: none !important;
}

/* Checkbox */
.ccm-block-custom-login .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ccm-block-custom-login .form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.ccm-block-custom-login .form-check-label {
    font-size: 0.875rem;
    color: #495156;
    margin: 0;
}

/* Login Button - Theme Style */
.ccm-block-custom-login .btn-primary,
.ccm-block-custom-login button[type="submit"]:not(.logout-link) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #495156 !important;
    border: 1px solid #495156 !important;
    color: #fff !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    border-radius: 0.25rem !important;
    height: 3rem !important;
    width: 100% !important;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.ccm-block-custom-login .btn-primary:hover,
.ccm-block-custom-login button[type="submit"]:not(.logout-link):hover {
    background-color: #3a4145 !important;
    border-color: #3a4145 !important;
}

/* Spacing */
.ccm-block-custom-login .mb-3 {
    margin-bottom: 1.25rem !important;
}

.ccm-block-custom-login .row {
    margin: 0;
}

.ccm-block-custom-login .col-12 {
    padding: 0;
}

/* Logged In State - keine Box */
.ccm-block-custom-login:has(.custom-login-logged-in) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 2rem 0 !important;
}

.ccm-block-custom-login .custom-login-logged-in {
    text-align: center;
}

.ccm-block-custom-login .custom-login-logged-in p {
    font-size: 1.25rem;
    color: #262F33;
    margin-bottom: 1rem;
}

.ccm-block-custom-login .login-redirect-link {
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.ccm-block-custom-login .logout-form {
    margin: 0;
}

.ccm-block-custom-login .logout-link {
    background: none !important;
    border: none !important;
    color: #495156;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0 !important;
    text-decoration: underline;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
}

.ccm-block-custom-login .logout-link:hover {
    color: #262F33;
    background: none !important;
}

/* Error Alert */
.ccm-block-custom-login .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* Login Intro Section */
.login-intro-section {
    text-align: center;
    margin-bottom: 2rem;
}

.login-intro-section h2 {
    font-size: clamp(1.5rem, 1.125rem + 1.6666666667vw, 2rem);
    font-weight: 700;
    color: #262F33;
    margin-bottom: 0.75rem;
}

.login-intro-section p {
    font-size: 1rem;
    color: #495156;
    margin: 0;
}
