/**
 * Style dla strony logowania - Nowoczesny design deweloperski
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

#wpadminbar {
    display: none !important;
}

/* ============================================
   GLOBALNE STYLE
   ============================================ */
.login-page-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-page-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* ============================================
   KARTA LOGOWANIA
   ============================================ */
.login-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    letter-spacing: -0.8px;
}

.login-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   BŁĘDY
   ============================================ */
.login-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   FORMULARZ
   ============================================ */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    color: #1a1a1a;
    transition: all 0.15s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ============================================
   POKAŻ HASŁO
   ============================================ */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.15s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #1a1a1a;
}

.password-toggle-icon {
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

.form-group-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.15s ease;
    accent-color: #1a1a1a;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.checkbox-label span {
    font-weight: 500;
}

/* ============================================
   PRZYCISK SUBMIT
   ============================================ */
.login-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-submit-btn:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   FOOTER LOGOWANIA
   ============================================ */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.login-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.login-link:hover {
    color: #1a1a1a;
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 768px) {
    .login-page-main {
        padding: 20px 16px;
        min-height: calc(100vh - 150px);
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}