﻿/* ============================================================
   CDL Forms – Glassmorphism Inputs, Textareas, Selects
   Clean, conflict-free, Bootstrap-safe
   ============================================================ */

/* ---------------------------
   Base Input Style
--------------------------- */
.cdl-input,
.form-control.cdl-input {
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(170,108,57,0.25);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    color: #1a1a1a;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

    /* Hover */
    .cdl-input:hover {
        background: rgba(255, 255, 255, 0.9);
    }

    /* Fokus */
    .cdl-input:focus {
        background: rgba(255, 255, 255, 0.95);
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(170,108,57,0.18);
        outline: none;
    }

    /* Disabled */
    .cdl-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ---------------------------
   Textarea
--------------------------- */
textarea.cdl-input {
    min-height: 120px;
    resize: vertical;
}

/* ---------------------------
   Select
--------------------------- */
select.cdl-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23aa6c39' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
}

    /* Remove Bootstrap forced shadow */
    select.cdl-input:focus {
        outline: none !important;
    }

/* ---------------------------
   Checkbox + Radio
--------------------------- */
.form-check-input.cdl-check {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    border: 1.5px solid rgba(170,108,57,0.45);
    background: rgba(255,255,255,0.75);
    transition: all 0.2s;
}

    .form-check-input.cdl-check:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    .form-check-input.cdl-check:focus {
        box-shadow: 0 0 0 0.2rem rgba(170,108,57,0.25);
        outline: none;
    }

/* Radios remain round */
.form-check-input[type="radio"].cdl-check {
    border-radius: 50%;
}

/* ---------------------------
   Form Groups
--------------------------- */
.cdl-form-group {
    margin-bottom: 1.2rem;
}

.cdl-label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
    display: block;
}

/* ---------------------------
   Validation Handling
--------------------------- */
.cdl-input.is-invalid,
.form-control.cdl-input.is-invalid {
    border-color: #cc3b3b !important;
    background: rgba(255, 210, 210, 0.5);
}

.cdl-invalid-feedback {
    color: #b30000;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* ---------------------------
   Glassy Fieldset (optional)
--------------------------- */
.cdl-fieldset {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(170,108,57,0.25);
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.4rem;
}

    .cdl-fieldset legend {
        font-weight: 700;
        color: var(--primary);
        padding: 0 0.5rem;
        margin-bottom: 0.6rem;
    }

/* ---------------------------
   Input-Group (Bootstrap-safe)
--------------------------- */
.cdl-input-group .input-group-text {
    background: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(170,108,57,0.25);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--primary);
    font-weight: 600;
}

.cdl-input-group .cdl-input {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

/* ---------------------------
   Small input spacing
--------------------------- */
.cdl-input-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

/* ---------------------------
   File Upload
--------------------------- */
.cdl-file {
    border: 2px dashed rgba(170,108,57,0.3);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.25s ease;
}

    .cdl-file:hover {
        background: rgba(255,255,255,0.8);
        border-color: var(--primary);
    }



/* =======================================================================
   CDL LOGIN – CLEAN & OPTIMIZED (Final Version)
   Glassmorphism ✓
   Soft Gold UI ✓
   Bootstrap-safe ✓
   No conflicts ✓
======================================================================= */


/* -------------------------------------------------------
   WRAPPER
------------------------------------------------------- */
.cdl-login-wrapper {
    min-height: 85vh;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* -------------------------------------------------------
   GLASS CARD
------------------------------------------------------- */
.cdl-login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    padding: 2.4rem;
    animation: fadeUp 0.35s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* -------------------------------------------------------
   HEADLINE / LOGO
------------------------------------------------------- */
.cdl-login-card .cdl-login-title {
    text-align: center;
}

    .cdl-login-card .cdl-login-title img {
        width: 70px;
        margin-bottom: 10px;
    }

.cdl-login-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.cdl-login-card p {
    margin: 0;
    opacity: 0.7;
}


/* -------------------------------------------------------
   INPUTS
------------------------------------------------------- */
.cdl-login-card input.form-control {
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(170,108,57,0.25);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
}

    .cdl-login-card input.form-control:hover {
        background: rgba(255, 255, 255, 0.88);
    }

    .cdl-login-card input.form-control:focus {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(170,108,57,0.55);
        box-shadow: 0 0 0 0.25rem rgba(170,108,57,0.18);
    }


/* -------------------------------------------------------
   LABELS
------------------------------------------------------- */
.cdl-login-card label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #333;
    margin-bottom: 0.35rem;
}


/* -------------------------------------------------------
   CHECKBOX
------------------------------------------------------- */
.cdl-login-card .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid rgba(170,108,57,0.45);
    cursor: pointer;
}

    .cdl-login-card .form-check-input:checked {
        background-color: rgba(170,108,57,0.9);
        border-color: rgba(170,108,57,0.9);
    }

.cdl-login-card .form-check-label {
    font-size: 0.95rem;
    opacity: 0.85;
}


/* -------------------------------------------------------
   PRIMARY LOGIN BUTTON  (Soft Gold)
------------------------------------------------------- */
.cdl-login-card .btn-primary {
    background: linear-gradient(135deg, #d4b575, #bfa46a) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.7rem 1.3rem !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    width: 100%;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12) !important;
}

    .cdl-login-card .btn-primary:hover {
        background: linear-gradient(135deg, #c7a968, #ae9458) !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
        transform: translateY(-1px);
    }

    .cdl-login-card .btn-primary:active {
        transform: translateY(0);
    }


/* -------------------------------------------------------
   CTA UNTER DEM LOGIN
------------------------------------------------------- */
.cdl-login-cta {
    margin-top: 1.6rem;
    text-align: center;
}

    .cdl-login-cta p {
        margin-bottom: 0.5rem;
        opacity: 0.65;
    }

    .cdl-login-cta .btn-login-nav {
        background: rgba(214,179,104,0.12);
        border: 1px solid rgba(214,179,104,0.35);
        color: rgba(102,79,28,0.95);
        padding: 0.55rem 1.3rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.25s ease;
    }

        .cdl-login-cta .btn-login-nav:hover {
            background: rgba(214,179,104,0.22);
            border-color: rgba(214,179,104,0.55);
        }


/* -------------------------------------------------------
   RESPONSIVE (kleine Optimierungen)
------------------------------------------------------- */
@media (max-width: 480px) {
    .cdl-login-card {
        padding: 1.8rem;
    }
}
