/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Layout */
.auth-bg-basic {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.bg-overlay {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.min-vh-100 {
    min-height: auto;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-xl-5,
.col-md-8,
.col-lg-6,
.col-xl-7 {
    padding: 0 0.75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-8 {
        width: 66.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .col-xl-5 {
        width: 41.666667%;
    }
    .col-xl-7 {
        width: 58.333333%;
    }
}

/* Spacing */
.py-3 { padding: 1rem 0; }
.py-5 { padding: 3rem 0; }
.px-3 { padding: 0 1rem; }
.pb-3 { padding-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* Logo Section */
.logo-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-lg img {
    height: 32px;
}

.logo-txt {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
}

.text-muted {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.font-size-15 {
    font-size: 0.9375rem;
}

.w-75 {
    width: 75%;
}

/* Card */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.bg-transparent {
    background-color: transparent !important;
}

.shadow-none {
    box-shadow: none !important;
}

.border-0 {
    border: 0 !important;
}

.card-body {
    padding: 0.5rem 2rem;
}

/* Error Number */
.error-title {
    font-size: 10rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2563eb; /* Fallback untuk browser yang tidak support */
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    position: relative;
}

/* Floating Balls Animation */
.error-title::before,
.error-title::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Left balls */
.error-title::before {
    width: 20px;
    height: 20px;
    left: -60px;
    top: 30%;
    animation: floatLeft1 3s ease-in-out infinite;
}

/* Right ball */
.error-title::after {
    width: 25px;
    height: 25px;
    right: -70px;
    top: 20%;
    animation: floatRight 2.5s ease-in-out infinite;
}

/* Additional left ball using pseudo element on span */
.blink-infinite::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
    left: -80px;
    top: 60%;
    animation: floatLeft2 2.8s ease-in-out infinite 0.5s;
}

@keyframes floatLeft1 {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-25px) scale(1.1);
        opacity: 1;
    }
}

@keyframes floatLeft2 {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

@keyframes floatRight {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) scale(1.05);
        opacity: 1;
    }
}

.blink-infinite {
    animation: pulse 2s ease-in-out infinite, gradientShift 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #4f46e5, #2563eb);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Typography */
h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.text-uppercase {
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px) scaleX(1.03);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    color: white;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
}

.btn-primary:active {
    transform: translateY(-1px) scaleX(1.01);
    outline: none;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Icon dan Arrow styling */
.btn svg {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn:hover svg {
    transform: scale(1.1);
}

.btn div {
    transition: all 0.3s ease;
    opacity: 0.7;
    font-weight: bold;
}

.btn:hover div {
    transform: translateX(4px);
    opacity: 1;
}

.waves-effect {
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .logo-txt {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-title {
        font-size: 4rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
}
