/* ========================================
   PŘIHLAŠOVACÍ STRÁNKA - BEM METODIKA
   MOBILE FIRST
   ======================================== */

/* ========================================
   HLAVNÍ KONTEJNER
   ======================================== */

.login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
}

.login__container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
}

/* ========================================
   OBRÁZKOVÁ ČÁST - SKRYTÁ NA MOBILU
   ======================================== */

.login__image {
    display: none;
}

/* ========================================
   FORMULÁŘOVÁ ČÁST
   ======================================== */

.login__form-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ========================================
   LOGO
   ======================================== */

.login__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login__logo-image {
    height: 40px;
    width: auto;
}

/* ========================================
   OBSAH FORMULÁŘE
   ======================================== */

.login__content {
    width: 100%;
}

.login__title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 8px;
}

.login__subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 28px;
}

/* ========================================
   FORMULÁŘ
   ======================================== */

.login__form {
    width: 100%;
}

.login__field {
    margin-bottom: 20px;
}

.login__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.login__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login__input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.login__input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    font-size: 16px;
    font-family: inherit;
    color: #2c3e50;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.login__input::placeholder {
    color: #9ca3af;
}

.login__input:focus {
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login__input--password {
    padding-right: 50px;
}

/* ========================================
   TLAČÍTKO ZOBRAZIT/SKRÝT HESLO
   ======================================== */

.login__password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login__password-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.login__password-toggle:hover .login__password-icon {
    color: #667eea;
}

.login__password-icon--hide {
    display: none;
}

.login__password-toggle--visible .login__password-icon--show {
    display: none;
}

.login__password-toggle--visible .login__password-icon--hide {
    display: block;
}

/* ========================================
   ZAPAMATOVAT + ZAPOMENUTÉ HESLO
   ======================================== */

.login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.login__remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.login__remember-checkbox {
    display: none;
}

.login__remember-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background-color: #f8f9fa;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.login__remember-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.login__remember-checkbox:checked + .login__remember-checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.login__remember-checkbox:checked + .login__remember-checkmark::after {
    opacity: 1;
}

.login__remember:hover .login__remember-checkmark {
    border-color: #667eea;
}

.login__remember-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.login__forgot-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login__forgot-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ========================================
   TLAČÍTKO PŘIHLÁSIT
   ======================================== */

.login__submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff3d00 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.login__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff7d4d 0%, #ff5722 100%);
}

.login__submit:active {
    transform: translateY(0);
}

/* ========================================
   ODDĚLOVAČ
   ======================================== */

.login__divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.login__divider::before,
.login__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e9ecef;
}

.login__divider-text {
    padding: 0 16px;
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

/* ========================================
   SOCIÁLNÍ PŘIHLÁŠENÍ
   ======================================== */

.login__social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login__social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login__social-button--google {
    background-color: #ffffff;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.login__social-button--google:hover {
    background-color: #f8f9fa;
    border-color: #d1d5db;
}

.login__social-button--facebook {
    background-color: #1877F2;
    color: #ffffff;
    border: 2px solid #1877F2;
}

.login__social-button--facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
}

.login__social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   REGISTRACE
   ======================================== */

.login__register {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6c757d;
}

.login__register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login__register-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ========================================
   RESPONZIVITA - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .login {
        padding: 40px;
    }

    .login__container {
        max-width: 480px;
    }

    .login__form-wrapper {
        padding: 40px 36px;
        border-radius: 20px;
    }

    .login__logo-image {
        height: 48px;
    }

    .login__title {
        font-size: 28px;
    }

    .login__subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .login__input {
        padding: 16px 16px 16px 50px;
    }

    .login__submit {
        padding: 18px 28px;
        font-size: 17px;
    }
}

/* ========================================
   RESPONZIVITA - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .login {
        padding: 20px;
    }

    .login__container {
        flex-direction: row;
        max-width: 1000px;
        background-color: #ffffff;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    }

    /* Obrázková část - zobrazit na desktopu */
    .login__image {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: 45%;
        min-height: 600px;
        background-image: url('../../assets/images/find-dog-breeder-globally-pedia-dog.jpg.png');
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .login__image-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    }

    .login__image-content {
        position: relative;
        z-index: 1;
        padding: 40px;
        color: #ffffff;
    }

    .login__image-title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .login__image-text {
        font-size: 16px;
        line-height: 1.6;
        opacity: 0.9;
    }

    /* Formulářová část */
    .login__form-wrapper {
        width: 55%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px;
        border-radius: 0;
        box-shadow: none;
    }

    .login__logo {
        justify-content: flex-start;
        margin-bottom: 32px;
    }

    .login__logo-image {
        height: 44px;
    }

    .login__title {
        text-align: left;
        font-size: 32px;
    }

    .login__subtitle {
        text-align: left;
        font-size: 16px;
        margin-bottom: 36px;
    }

    .login__register {
        text-align: left;
    }
}

/* ========================================
   RESPONZIVITA - VELKÝ DESKTOP (1200px+)
   ======================================== */

@media (min-width: 1200px) {
    .login__container {
        max-width: 1100px;
    }

    .login__image {
        width: 50%;
    }

    .login__form-wrapper {
        width: 50%;
        padding: 56px 64px;
    }

    .login__image-title {
        font-size: 36px;
    }

    .login__image-text {
        font-size: 17px;
    }
}
