/* --- Hanson Project: Auth & Modal Styles --- */

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal.show { display: flex; }
.modal-backdrop {
    position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    opacity: 0; transition: opacity 0.5s ease;
}
.modal.show .modal-backdrop { opacity: 1; }

.modal-content {
    background: rgba(15, 23, 42, 0.8); border: 1px solid var(--glass-border);
    padding: 3.5rem; border-radius: 24px; width: 100%; max-width: 480px;
    position: relative; z-index: 2;
    transform: translateY(50px) scale(0.95); opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}
.modal.show .modal-content { transform: translateY(0) scale(1); opacity: 1; }

.modal-header { position: absolute; top: 2rem; right: 2rem; }
.close-btn { font-size: 2.5rem; cursor: pointer; transform: rotate(45deg); display: block; color: var(--text-dim); transition: var(--transition); line-height: 1; }
.close-btn:hover { color: var(--text-main); transform: rotate(135deg); }

.login-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.login-info p { color: var(--text-dim); margin-bottom: 2.5rem; }

/* Form Inputs */
.input-field { position: relative; margin-bottom: 2rem; }
.input-field input {
    width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 14px 16px; color: white; font-size: 1rem; outline: none;
    transition: var(--transition); appearance: none;
}
.input-field label { position: absolute; top: 14px; left: 16px; color: var(--text-dim); pointer-events: none; transition: var(--transition); font-size: 1rem; }
.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label { top: -24px; left: 4px; font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.input-field input:focus { background: rgba(255, 255, 255, 0.08); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

/* Buttons & Helpers */
.btn-submit-pro {
    width: 100%; padding: 16px; background: var(--primary); border: none; border-radius: 12px;
    color: white; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition);
}
.btn-submit-pro:hover { background: var(--primary-dark); box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4); }

.code-input-group { display: flex; align-items: flex-start; gap: 12px; }
.btn-send-code {
    background: linear-gradient(to right, var(--primary), var(--accent)); color: white; border: none;
    padding: 0 20px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: all 0.3s ease; height: 52px;
}

.form-helper { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 2rem; color: var(--text-dim); }
.remember-me { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.link-forgot, .link-register { color: var(--primary); text-decoration: none; font-weight: 700; }

/* Hardware Auth Special */
.hw-auth-info { text-align: center; margin-bottom: 25px; padding: 20px; background: rgba(255, 255, 255, 0.05); border-radius: 15px; border: 1px dashed rgba(255, 255, 255, 0.2); }
.hw-icon-wrapper { color: #fff; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); animation: pulse-white 2s infinite; }
@keyframes pulse-white { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }
