/* ==========================================================================
   Login Page Styles
   ========================================================================== */

/* ---------- Layout ---------- */
.pms-login-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
}

.pms-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 60px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

/* ---------- Login Card ---------- */
.pms-login-card {
    background: var(--pms-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--pms-gray-100);
}

.pms-login-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.pms-login-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    margin-bottom: 16px;
}

.pms-login-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pms-gray-900);
    margin: 0 0 8px;
}

.pms-login-card__desc {
    font-size: 14px;
    color: var(--pms-gray-500);
    margin: 0;
}

/* ---------- Form ---------- */
.pms-login-form .pms-form-group {
    margin-bottom: 20px;
}

.pms-login-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pms-gray-700);
    margin-bottom: 6px;
}

.pms-form-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pms-form-group__header label {
    margin-bottom: 0;
}

.pms-login-forgot {
    font-size: 13px;
    color: var(--pms-primary);
    text-decoration: none;
    font-weight: 500;
}

.pms-login-forgot:hover {
    text-decoration: underline;
}

/* Input with icon */
.pms-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.pms-input-icon > svg:first-child {
    position: absolute;
    left: 14px;
    color: var(--pms-gray-400);
    pointer-events: none;
    z-index: 1;
}

.pms-input-icon input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    font-size: 15px;
    border: 1px solid var(--pms-gray-300);
    border-radius: 10px;
    background: var(--pms-white);
    color: var(--pms-gray-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.pms-input-icon input:focus {
    border-color: var(--pms-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.pms-input-icon input::placeholder {
    color: var(--pms-gray-400);
}

/* Password toggle button */
.pms-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pms-gray-400);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.pms-password-toggle:hover {
    color: var(--pms-gray-600);
}

/* Remember me checkbox */
.pms-checkbox--remember {
    font-size: 14px;
    color: var(--pms-gray-600);
}

/* Submit button loading state */
.pms-login-btn__loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Messages */
.pms-login-form__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.pms-login-form__message--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.pms-login-form__message--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ---------- Social Login Divider ---------- */
.pms-social-login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px;
    gap: 16px;
}

.pms-social-login-divider::before,
.pms-social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pms-gray-200);
}

.pms-social-login-divider span {
    font-size: 13px;
    color: var(--pms-gray-500);
    white-space: nowrap;
    font-weight: 500;
}

/* ---------- Social Login Buttons ---------- */
.pms-social-login-buttons {
    margin-bottom: 4px;
}

.pms-social-login-buttons .social-login-buttons,
.pms-social-login-buttons .wp-social-login-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pms-social-login-buttons a,
.pms-social-login-buttons button {
    border-radius: 10px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.pms-social-login-buttons a:hover,
.pms-social-login-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* ---------- Footer ---------- */
.pms-login-card__footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pms-gray-100);
}

.pms-login-card__footer p {
    font-size: 14px;
    color: var(--pms-gray-500);
    margin: 0;
}

.pms-login-card__footer a {
    color: var(--pms-primary);
    font-weight: 600;
    text-decoration: none;
}

.pms-login-card__footer a:hover {
    text-decoration: underline;
}

/* ---------- Side Info ---------- */
.pms-login-info {
    padding: 20px 0;
}

.pms-login-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pms-gray-900);
    margin: 0 0 12px;
}

.pms-login-info > p {
    font-size: 16px;
    color: var(--pms-gray-600);
    margin: 0 0 32px;
    line-height: 1.6;
}

.pms-login-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pms-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--pms-gray-700);
    font-weight: 500;
}

.pms-login-features li svg {
    flex-shrink: 0;
}

.pms-login-help {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pms-login-help h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--pms-gray-700);
    margin: 0 0 16px;
}

/* Contact Cards */
.pms-login-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pms-login-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pms-login-contact-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.pms-login-contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pms-login-contact-card__icon--email {
    background: #e0f2fe;
    color: #0284c7;
}

.pms-login-contact-card__icon--whatsapp {
    background: #dcfce7;
    color: #16a34a;
}

.pms-login-contact-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pms-login-contact-card__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pms-gray-700);
}

.pms-login-contact-card__value {
    font-size: 14px;
    color: var(--pms-gray-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pms-login-section {
        padding: 80px 0 40px;
    }

    .pms-login-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pms-login-card {
        padding: 28px 20px;
    }

    .pms-login-card__title {
        font-size: 22px;
    }

    .pms-login-info {
        display: none;
    }
}
