/**
 * AUTH PAGES – Přihlášení & Registrace
 * GIGA SHOP – moderní profesionální design
 * v1.0 – 2026-03-03
 */

/* ================================================
   AUTH LAYOUT
   ================================================ */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ================================================
   AUTH CARD
   ================================================ */
.auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
                0 4px 20px rgba(0, 0, 0, 0.04);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1),
                0 6px 24px rgba(0, 0, 0, 0.05);
}

/* Registration wider */
.auth-card--register {
    max-width: 520px;
}

/* ================================================
   AUTH CARD HEADER
   ================================================ */
.auth-card__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 40px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-card__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem;
    color: #fff;
}

.auth-card__header h1 {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.auth-card__header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ================================================
   AUTH CARD BODY
   ================================================ */
.auth-card__body {
    padding: 36px 40px 24px;
}

/* ================================================
   ALERTS
   ================================================ */
.auth-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert--error .auth-alert__icon {
    color: #dc2626;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-alert--success .auth-alert__icon {
    color: #16a34a;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-alert ul li + li {
    margin-top: 4px;
}

/* ================================================
   FORM GROUPS
   ================================================ */
.auth-form-group {
    margin-bottom: 22px;
}

.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.auth-form-group label .required {
    color: #dc2626;
    margin-left: 2px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
}

.auth-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.93rem;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-input-wrap input::placeholder {
    color: #b0b7c3;
    font-weight: 400;
}

.auth-input-wrap input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.auth-input-wrap input:focus + .input-icon,
.auth-input-wrap input:focus ~ .input-icon {
    color: #667eea;
}

/* Password toggle */
.auth-input-wrap .toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
    z-index: 2;
}

.auth-input-wrap .toggle-password:hover {
    color: #667eea;
}

/* Form help text */
.auth-form-help {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 6px;
    display: block;
}

/* Two column row */
.auth-form-row {
    display: flex;
    gap: 16px;
}

.auth-form-row .auth-form-group {
    flex: 1;
    min-width: 0;
}

/* ================================================
   PASSWORD STRENGTH
   ================================================ */
.password-strength {
    margin-top: 8px;
}

.password-strength__bar {
    height: 4px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.password-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.password-strength__text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
    text-align: right;
    transition: color 0.3s;
}

.password-strength[data-strength="weak"] .password-strength__fill {
    width: 25%;
    background: #ef4444;
}
.password-strength[data-strength="weak"] .password-strength__text {
    color: #ef4444;
}

.password-strength[data-strength="fair"] .password-strength__fill {
    width: 50%;
    background: #f59e0b;
}
.password-strength[data-strength="fair"] .password-strength__text {
    color: #f59e0b;
}

.password-strength[data-strength="good"] .password-strength__fill {
    width: 75%;
    background: #3b82f6;
}
.password-strength[data-strength="good"] .password-strength__text {
    color: #3b82f6;
}

.password-strength[data-strength="strong"] .password-strength__fill {
    width: 100%;
    background: #10b981;
}
.password-strength[data-strength="strong"] .password-strength__text {
    color: #10b981;
}

/* ================================================
   CHECKBOX
   ================================================ */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.auth-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 1px;
    background: #fff;
}

.auth-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.auth-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.auth-checkbox a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-checkbox a:hover {
    text-decoration: underline;
    color: #764ba2;
}

/* ================================================
   REMEMBER / FORGOT ROW
   ================================================ */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-forgot-link {
    color: #667eea;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ================================================
   SUBMIT BUTTON
   ================================================ */
.auth-submit-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.auth-submit-btn i {
    font-size: 1.05rem;
}

/* ================================================
   DIVIDER
   ================================================ */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ================================================
   AUTH FOOTER
   ================================================ */
.auth-card__footer {
    padding: 0 40px 36px;
    text-align: center;
}

.auth-card__footer p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.auth-card__footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-card__footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ================================================
   REGISTER - BENEFITS SIDEBAR
   ================================================ */
.auth-layout--register {
    display: flex;
    gap: 40px;
    max-width: 960px;
    width: 100%;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.auth-benefits {
    flex: 0 0 340px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
                0 4px 20px rgba(0, 0, 0, 0.04);
}

.auth-benefits__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
}

.auth-benefits__subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.5;
}

.auth-benefits__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-benefits__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.auth-benefits__list li:last-child {
    border-bottom: none;
}

.auth-benefits__list .benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-benefits__list .benefit-icon--cart {
    background: #eff6ff;
    color: #3b82f6;
}

.auth-benefits__list .benefit-icon--history {
    background: #faf5ff;
    color: #8b5cf6;
}

.auth-benefits__list .benefit-icon--discount {
    background: #fefce8;
    color: #eab308;
}

.auth-benefits__list .benefit-icon--heart {
    background: #fdf2f8;
    color: #ec4899;
}

.auth-benefits__list .benefit-icon--shield {
    background: #f0fdf4;
    color: #22c55e;
}

.auth-benefits__list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 3px;
}

.auth-benefits__list p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .auth-layout--register {
        flex-direction: column;
        max-width: 520px;
    }

    .auth-benefits {
        flex: unset;
        width: 100%;
        order: 2;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 20px 12px;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-card__header {
        padding: 32px 24px 28px;
    }

    .auth-card__header h1 {
        font-size: 1.4rem;
    }

    .auth-card__body {
        padding: 28px 24px 20px;
    }

    .auth-card__footer {
        padding: 0 24px 28px;
    }

    .auth-form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-benefits {
        padding: 28px 20px;
    }
}
