/* Auth Modal */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.auth-overlay.active {
    display: flex;
}

.auth-modal {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.auth-form {
    padding: 40px 40px 32px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/arkaplan/lazer-desen-arka-plan.svg');
    background-size: 450%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.auth-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    z-index: 0;
}

.auth-form>* {
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .auth-form {
        padding: 40px 32px 32px;
    }
}

@media (min-width: 1024px) {
    .auth-form {
        padding: 48px;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #e5e7eb;
    color: #111827;
}

.auth-form h2 {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    color: #fff;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.google {
    background: #ea4335;
}

.social-btn.google:hover {
    background: #d33426;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #0c63d4;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form input {
    padding: 17px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 19px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
}

.auth-form input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.7);
}

.password-wrapper {
    position: relative;
    width: 100%;
    z-index: 2;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.2s;
    z-index: 100;
    pointer-events: auto;
}

.toggle-password:hover {
    color: #10b981;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.remember-me input[type="checkbox"]:checked {
    background: #10b981;
    border-color: #10b981;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.forgot-password {
    color: #10b981;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    margin-top: 32px;
    color: #6b7280;
    font-size: 14px;
}

.auth-switch a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-subtitle a {
    color: #10b981;
}

.remember-me {
    color: #10b981;
}

.btn-submit {
    padding: 14px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #dc2626;
}

.btn-submit.success {
    background: #10b981 !important;
}

.btn-submit.success:hover {
    background: #059669 !important;
}