/* Premium Login Register - Modern & Glassmorphism UI */

:root {
    --dut-auth-primary: #839d03;
    --dut-auth-primary-hover: #6a7f02;
    --dut-auth-bg: #fafafa;
    --dut-auth-border: #eef0f2;
    --dut-auth-radius: 28px;
    --dut-auth-radius-btn: 14px;
    --dut-auth-shadow: 0 35px 80px rgba(0, 0, 0, 0.08);
}

.dut-auth-container,
.dut-auth-container *:not(.dashicons) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.dut-auth-container .dashicons {
    font-family: dashicons !important;
}

.dut-auth-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: var(--dut-auth-radius);
    box-shadow: var(--dut-auth-shadow);
    text-align: center;
}

/* Titles */
.dut-auth-title {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.dut-auth-subtitle {
    color: #888;
    font-size: 15px;
    margin-bottom: 35px;
}

/* Forms */
.dut-auth-form {
    text-align: left;
}

.dut-auth-field {
    margin-bottom: 20px;
    position: relative;
}

.dut-auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.dut-auth-input {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 1px solid var(--dut-auth-border) !important;
    border-radius: var(--dut-auth-radius-btn) !important;
    background: var(--dut-auth-bg) !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dut-auth-input:focus {
    border-color: var(--dut-auth-primary) !important;
    box-shadow: 0 0 0 4px rgba(131, 157, 3, 0.1) !important;
    outline: none;
}

/* Password Toggle */
.dut-auth-pass-wrapper {
    position: relative;
}

.dut-auth-toggle-pass {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 5px;
    display: flex;
    transition: color 0.3s;
}

.dut-auth-toggle-pass:hover {
    color: var(--dut-auth-primary);
}

/* Options (Remember & Forgot) */
.dut-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -10px 0 30px 0;
    font-size: 13px;
}

.dut-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.dut-auth-remember input {
    accent-color: var(--dut-auth-primary);
}

.dut-auth-link {
    color: var(--dut-auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.dut-auth-link:hover {
    color: var(--dut-auth-primary-hover);
    text-decoration: underline;
}

/* Buttons */
.dut-auth-submit {
    width: 100% !important;
    padding: 18px !important;
    background: #000 !important;
    color: #fff !important;
    border-radius: var(--dut-auth-radius-btn) !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.dut-auth-submit:hover {
    background: var(--dut-auth-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(131, 157, 3, 0.2);
}

.dut-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.dut-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: var(--dut-auth-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.dut-auth-divider::before,
.dut-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #f0f0f0;
}

.dut-auth-divider span {
    padding: 0 15px;
}

.dut-auth-social-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
}

.dut-auth-social-wrapper .nsl-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Footer / Switch */
.dut-auth-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #888;
}

/* Logged In Card */
.dut-auth-logged-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dut-auth-avatar {
    margin-bottom: 20px;
}

.dut-auth-avatar img {
    border-radius: 50%;
    border: 4px solid #f0f2f5;
    padding: 3px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.dut-auth-btn-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.dut-auth-btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.dut-auth-btn-primary {
    background: #000;
    color: #fff;
}

.dut-auth-btn-primary:hover {
    background: var(--dut-auth-primary);
}

.dut-auth-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #eee;
}

.dut-auth-btn-secondary:hover {
    background: #e9ecef;
}

/* Scroll Fix: Ensure page is always scrollable when auth container is present */
html,
body {
    height: auto !important;
    min-height: 100% !important;
}

body:has(.dut-auth-container),
body.dut-auth-active {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* AJAX Status */
.dut-auth-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.dut-auth-message.success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #c6f6d5;
    display: block;
}

.dut-auth-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
    display: block;
}

/* reCAPTCHA */
.dut-auth-recaptcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Mobile */
@media (max-width: 580px) {
    .dut-auth-container {
        margin: 20px auto;
        padding: 40px 20px;
        border-radius: 20px;
        width: 100%;
    }

    .dut-auth-title {
        font-size: 24px;
    }

    .dut-auth-submit {
        padding: 15px !important;
        font-size: 15px !important;
    }

    .dut-auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 380px) {
    .dut-auth-container {
        padding: 30px 15px;
    }

    .dut-auth-title {
        font-size: 20px;
    }
}