/* Modal chuyển nhà - Compact */
.migration-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.migration-modal-overlay.show {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.migration-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 400px;
    width: 92%;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
    max-height: 90vh;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.migration-modal-header {
    position: relative;
    max-height: 180px;
    overflow: hidden;
}
.migration-modal-header img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.migration-modal-body {
    padding: 20px 24px;
    text-align: center;
}
.migration-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.migration-domain {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: initial;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 12px;
}
.migration-features {
    text-align: left;
    margin: 12px 0;
}
.migration-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
}
.migration-features .feature-item .icon {
    font-size: 16px;
}
.migration-features .feature-item.success .icon {
    color: #22c55e;
}
.migration-features .feature-item.warning .icon {
    color: #ef4444;
}
.migration-note {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.migration-countdown {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.countdown-text {
    font-size: 13px;
    color: #64748b;
}
.countdown-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-go-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-go-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}
.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
}
.auth-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.auth-header .logo {
    max-height: 60px;
    margin-bottom: 16px;
}
.auth-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}
.auth-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.auth-body {
    padding: 28px 32px 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}
.form-control {
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}
.form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
.form-control::placeholder {
    color: #94a3b8;
}
.form-control-wrap {
    position: relative;
}
.form-control-wrap .form-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}
.btn-login:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}
.link-forgot {
    font-size: 13px;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}
.link-forgot:hover {
    text-decoration: underline;
}
.auth-footer {
    text-align: center;
    padding: 20px 32px 28px;
    background: #f8fafc;
    font-size: 14px;
    color: #64748b;
}
.auth-footer a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}
.input-icon {
    position: relative;
}
.input-icon .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}
.input-icon .form-control {
    padding-left: 48px;
}
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 13px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.divider span {
    padding: 0 16px;
}