/* ==========================================================================
   kasuwa Auth (auth- prefix)
   Shared by: login.php, forgotpwd.php, confirm_registration_mail.php
   ========================================================================== */

/* Wrapper */
.auth-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.auth-wrapper--narrow {
    max-width: 440px;
}

/* Feedback */
.auth-feedback {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.auth-feedback--danger {
    background: #fdf0f0;
    border-left: 4px solid #e74c3c;
    color: #842029;
}

.auth-feedback--success {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    color: #1a5c32;
}

.auth-feedback ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.auth-feedback li {
    margin-bottom: 4px;
}

/* Card */
.auth-card {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Grid */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.auth-col-login {
    padding-right: 32px;
}

.auth-col-register {
    padding-left: 32px;
}

/* Divider */
.auth-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: #999;
    z-index: 1;
}

.auth-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #e0e0e0;
}

/* Title */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

/* Input group */
.auth-input-group {
    margin-bottom: 16px;
}

/* Input with icon */
.auth-input-icon {
    position: relative;
    display: block;
}

.auth-input-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.auth-input-icon .auth-input {
    padding-left: 42px;
}

/* Input */
.auth-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #10A5BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16,165,187,0.1);
}

/* Switch (toggle) */
.auth-switch-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.auth-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.2s;
}

.auth-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.auth-switch input:checked + .auth-switch-slider {
    background: #10A5BB;
}

.auth-switch input:checked + .auth-switch-slider::before {
    transform: translateX(20px);
}

.auth-switch-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
}

/* Buttons */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}

.auth-btn--block {
    display: flex;
    width: 100%;
}

.auth-btn--primary {
    background: #10A5BB;
    color: #fff;
}
.auth-btn--primary:hover {
    background: #0d8a9c;
    color: #fff;
}

.auth-btn--outline {
    background: transparent;
    color: #10A5BB;
    border: 2px solid #10A5BB;
}
.auth-btn--outline:hover {
    background: #10A5BB;
    color: #fff;
}

.auth-btn--light {
    background: #f0f0f0;
    color: #555;
}
.auth-btn--light:hover {
    background: #e0e0e0;
    color: #333;
}

.auth-btn--small {
    padding: 6px 14px;
    font-size: 0.8125rem;
}

/* Link */
.auth-link {
    color: #10A5BB;
    text-decoration: underline;
    font-size: 0.875rem;
}
.auth-link:hover {
    color: #0d8a9c;
}

/* Flex row for forgot password link */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Captcha */
.auth-captcha {
    border: 1px solid #10A5BB;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Confirm / Done state */
.auth-confirm {
    text-align: center;
    padding: 24px 0;
}

.auth-confirm-icon {
    color: #27ae60;
    margin-bottom: 16px;
}

.auth-confirm-icon svg {
    width: 48px;
    height: 48px;
}

.auth-confirm h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.auth-confirm p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Separator */
.auth-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ==========================================================================
   Status Pages (membersonly, 404, 404-product, 500, notfound)
   ========================================================================== */

.auth-status-page {
    text-align: center;
    padding: 60px 16px 50px;
    max-width: 560px;
    margin: 0 auto;
}

.auth-status-icon {
    margin-bottom: 20px;
}

.auth-status-icon svg {
    width: 48px;
    height: 48px;
}

.auth-status-icon--info {
    color: #10A5BB;
}

.auth-status-icon--warning {
    color: #f0ad4e;
}

.auth-status-icon--danger {
    color: #dc3545;
}

.auth-status-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.auth-status-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

.auth-status-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.auth-status-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.auth-status-list li svg {
    flex-shrink: 0;
    color: #10A5BB;
    margin-top: 3px;
}

.auth-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #10A5BB;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.auth-status-btn:hover {
    background: #0d8a9c;
    color: #fff;
    text-decoration: none;
}

.auth-status-btn--danger {
    background: #dc3545;
}

.auth-status-btn--danger:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 767px) {
    .auth-card {
        padding: 0;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-grid::before {
        display: none;
    }

    .auth-col-login {
        padding-right: 0;
        padding-bottom: 0;
    }

    .auth-col-register {
        padding-left: 0;
        padding-top: 0;
    }

    .auth-divider {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
    }

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        position: absolute;
        top: 50%;
        height: 1px;
        width: 50vw;
        background: #e0e0e0;
    }

    .auth-divider::before {
        right: 100%;
    }

    .auth-divider::after {
        left: 100%;
    }
}
