/**
 * Necudah Auth Styles
 *
 * @package Necudah
 */

/* Auth Page Layout */
.necudah-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.necudah-auth-container {
    width: 100%;
    max-width: 440px;
}

/* Logo */
.necudah-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.necudah-auth-logo img {
    max-height: 60px;
    width: auto;
}

.necudah-auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

/* Card */
.necudah-auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.necudah-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    text-align: center;
}

.necudah-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 32px 0;
    text-align: center;
}

/* Form */
.necudah-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.necudah-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.necudah-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.necudah-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.necudah-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.necudah-input::placeholder {
    color: #94a3b8;
}

/* Password Wrapper */
.necudah-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.necudah-password-wrapper .necudah-input {
    padding-right: 48px;
}

.necudah-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.necudah-password-toggle:hover {
    color: #3b82f6;
}

/* Password Strength */
.necudah-password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    min-width: 50px;
}

/* Form Row */
.necudah-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.necudah-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .necudah-form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Checkbox & Radio */
.necudah-checkbox,
.necudah-radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.necudah-checkbox input,
.necudah-radio input {
    margin-top: 3px;
    accent-color: #3b82f6;
}

.necudah-checkbox a,
.necudah-radio a {
    color: #3b82f6;
    text-decoration: none;
}

.necudah-checkbox a:hover,
.necudah-radio a:hover {
    text-decoration: underline;
}

.necudah-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Links */
.necudah-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
}

.necudah-link:hover {
    color: #3b82f6;
}

.necudah-link-primary {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}

.necudah-link-primary:hover {
    text-decoration: underline;
}

/* Buttons */
.necudah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.necudah-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.necudah-btn-primary {
    background: #1e3a5f;
    color: #ffffff;
}

.necudah-btn-primary:hover:not(:disabled) {
    background: #2d4a6f;
}

.necudah-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.necudah-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.necudah-btn-block {
    width: 100%;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.necudah-auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

.necudah-auth-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #bbf7d0;
}

/* Footer */
.necudah-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}

/* Verify Page */
.necudah-verify-icon {
    text-align: center;
    margin-bottom: 24px;
    color: #3b82f6;
}

.necudah-verify-loading {
    text-align: center;
    padding: 40px 0;
    color: #3b82f6;
}

.necudah-verify-tips {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #64748b;
}

.necudah-verify-tips p {
    margin: 0 0 8px 0;
    font-weight: 500;
}

.necudah-verify-tips ul {
    margin: 0;
    padding-left: 20px;
}

.necudah-verify-tips li {
    margin-bottom: 4px;
}

/* RTL Support */
[dir="rtl"] .necudah-auth-card {
    direction: rtl;
}

[dir="rtl"] .necudah-password-toggle {
    right: auto;
    left: 12px;
}

[dir="rtl"] .necudah-password-wrapper .necudah-input {
    padding-right: 16px;
    padding-left: 48px;
}

[dir="rtl"] .necudah-verify-tips ul {
    padding-left: 0;
    padding-right: 20px;
}