/* Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Glassmorphism Card */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Titel */
.login-title {
    text-align: center;
    margin-bottom: 25px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}




/* Inter Mikrotypografie */
input, label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.15px; /* Inter braucht leichtes spacing */
    font-size: 14px;
}

/* Wrapper */
.input-wrapper {
    width: 100%;
    padding-top:12px;
}

/* Glassmorphism Container */
.input-field-image.glass,
.input-field.glass {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.28); /* etwas weniger Weiß für Inter */
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55); /* stärkerer Lichtreflex */
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);     /* Apple-typischer Tiefenlook */
}

.input-field-image.glass {
    
    padding-left: 25px;
    padding-top: 8px;
    padding-bottom: 8px;
}


/* Input */
.input-field textarea,
.input-field input,
.input-field select {
    width: 100%;
    padding: 10px 10px 10px 56px; /* Inter braucht mehr Platz */
    font-size: 15px;              /* Inter wirkt bei 16px zu groß */
    font-weight: 400;
    background: transparent;
    border: none;
    outline: none;
    color: #003366;
    box-sizing: border-box;
}
.input-field ::placeholder{
   color: rgba(0, 0, 0, 0.4); /* Schwarz mit 40% Deckkraft */
        font-style: italic; 
}     

/* Icon */
.input-field .input-icon {
    position: absolute;
    left: 20px;                   /* Inter braucht etwas mehr Abstand */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.input-field .input-icon svg {
    width: 20px;
    height: 20px;
    fill: #003366;
}

/* Floating Label */
.input-field-image label,
.input-field label {
    top: -10px;
    font-size: 12px;
    font-weight: 500;
    opacity: 1;
    color: #003366;
    letter-spacing: 0.2px;
    position: absolute;
    left: 35px;                   /* Inter ist breiter → Label weiter rechts */
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.28); /* Glassmorphism im Label */
    padding: 0 6px;
    border-radius: 6px;
}



/* Passwort-Regeln */
.pw-check {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}
.rule {
    margin: 4px 0;
}

.rule.ok {
    color: #4cb050;
    font-weight: bold;
}

/* Apple Gradient Buttons */
.btn-primary {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #5dd65d, #3cb43c);
    box-shadow: 0 4px 12px rgba(60,180,60,0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6ae86a, #3cb43c);
    box-shadow: 0 6px 18px rgba(60,180,60,0.35);
}

.btn-secondary {
    margin-top:10px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #f7f7f7, #e5e5e5);
    border: 1px solid #ccc;
    color: #333;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff, #eaeaea);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Fehler */
.error-msg {
    margin-top: 15px;
    color: #d9534f;
    font-weight: bold;
    text-align: center;
}

/* Divider */
.login-divider {
    margin: 25px 0;
}

/* Register Hinweis */
.register-hint {
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-card {
        padding: 30px;
        max-width: 90%;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 24px;
        max-width: 95%;
        border-radius: 16px;
    }

    .input-wrapper input {
        padding: 13px 46px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
        max-width: 100%;
        border-radius: 12px;
    }

    .input-wrapper input {
        padding: 12px 44px;
        font-size: 15px;
    }
}
/* Icons */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.7;
}
*/
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    padding-left: 45px !important;

    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 12px; /* WICHTIG: Rund wie Buttons */

    font-size: 15px;
    font-weight: 500;

    height: 48px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);

    transition: all 0.25s ease;
}*/
.input-wrapper select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 12px !important;
    background-color: rgba(255,255,255,0.65);
    border:none;
    outline: none;
}
.input-wrapper textarea {
    max-height: 95px;
    min-height: 80px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border-radius: 12px !important;
}

/* Desktop: zweispaltig */
@media (min-width: 768px) {

    .edit-card {
        max-width: 1100px;
        padding: 40px 50px;
    }

    .edit-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
    }

    .edit-form-grid .input-wrapper {
        margin-bottom: 0;
    }
}
/* Optische Trennlinie */
.edit-divider {
    width: 100%;
    height: 1px;
    border: none;
    margin: 35px 0 25px 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.25) 50%,
        rgba(0,0,0,0) 100%
    );
}

/* Divider soll im Grid über beide Spalten gehen */
.full-span {
    grid-column: 1 / -1;
}

/* Add-Product Card – gleiche Breite wie edit-card */
.add-card {
    max-width: 1100px;
    padding: 40px 50px;
    margin: 40px auto;
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
    .add-card {
        padding: 20px;
        max-width: 100%;
        border-radius: 12px;
    }
/* Titel */
.add-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
}

/* Grid – einspaltig */
.add-grid {
    display: grid;
    grid-template-columns: 1fr;
}

/* Einspaltig erzwingen */
.add-grid.single-column {
    grid-template-columns: 1fr;
}



/* Bildvorschau */
#preview {
    margin-top: 10px;
    max-width: 150px;
    border-radius: 10px;
    display: none;
}
}
/* Upload-Bereich */
.upload-wrapper {
    margin-top: 10px;
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    gap: 8px;


}
/* 2-Spalten-Layout */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center; /* Vorschau mittig */
}

/* Linke Spalte */
.upload-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Rechte Spalte */
.upload-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-preview img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Delete Button im Apple-Glass Stil */
.btn-delete {
    display: inline-block;
    padding: 10px 10px;
    font-size: 12px;
    border-radius: 15px;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);

    color: #003366;
    opacity: 0.85;

    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-delete:active {
    transform: scale(0.97);
}
#remove-image {
    display: none; /* Standard: unsichtbar */
}

.login-btn-glass {
    width: 100%;
    padding: 14px 0;
    margin-top: 20px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #003366;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.18),
                inset 0 0 0 rgba(255,255,255,0.4);

    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover */
.login-btn-glass:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 45px rgba(0,0,0,0.22),
                inset 0 0 0 rgba(255,255,255,0.5);
}

/* Active */
.login-btn-glass:active {
    transform: translateY(0px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
