/* 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: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-family: 'Roboto', 'Google Sans', 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .15), 0 1px 2px rgba(60, 64, 67, .2);
    border-radius: 8px;
    padding: 11px 20px;
    position: relative;
    transition: box-shadow .2s, background .2s;
}

.social-btn.google:hover {
    background: #f8fbff;
    box-shadow: 0 2px 6px rgba(60, 64, 67, .25), 0 1px 3px rgba(60, 64, 67, .2);
    transform: none;
    border-color: #c6d0d8;
}

.social-btn.google i.fab.fa-google {
    display: none;
}

.social-btn.google::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
    vertical-align: middle;
}

body.dark-theme .social-btn.google {
    background: #fff !important;
    color: #3c4043 !important;
    border-color: #dadce0 !important;
}

body.dark-theme .social-btn.google:hover {
    background: #f1f3f4 !important;
}

.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;
}