/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #fff;
    border: 6px solid #000;
    padding: 40px 30px;
    box-shadow: 15px 15px 0 #4a90e2, 30px 30px 0 rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.login-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4a90e2;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 60px;
}

/* Brutalist Input Styles - From Uiverse.io by 0xnihilism */
.brutalist-container {
    position: relative;
    width: 100%;
    font-family: monospace;
}

.brutalist-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    background-color: #fff;
    border: 4px solid #000;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 5px 5px 0 #000, 10px 10px 0 #4a90e2;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.brutalist-input:focus {
    animation: focus-pulse 4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite,
               glitch 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.brutalist-input:focus::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: white;
    z-index: -1;
}

.brutalist-input:focus::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: -2;
    clip-path: inset(0 100% 0 0);
    animation: glitch-slice 4s steps(2, end) infinite;
}

@keyframes glitch-slice {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    10% {
        clip-path: inset(0 5% 0 0);
    }
    20% {
        clip-path: inset(0 80% 0 0);
    }
    30% {
        clip-path: inset(0 10% 0 0);
    }
    40% {
        clip-path: inset(0 50% 0 0);
    }
    50% {
        clip-path: inset(0 30% 0 0);
    }
    60% {
        clip-path: inset(0 70% 0 0);
    }
    70% {
        clip-path: inset(0 15% 0 0);
    }
    80% {
        clip-path: inset(0 90% 0 0);
    }
    90% {
        clip-path: inset(0 5% 0 0);
    }
    100% {
        clip-path: inset(0 100% 0 0);
    }
}

.brutalist-label {
    position: absolute;
    left: -3px;
    top: -35px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #000;
    padding: 5px 10px;
    transform: rotate(-1deg);
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brutalist-input:focus + .brutalist-label {
    transform: rotate(0deg) scale(1.05);
    background-color: #4a90e2;
}

.smooth-type {
    position: relative;
    overflow: hidden;
}

.smooth-type::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smooth-type:focus::before {
    opacity: 1;
    animation: type-gradient 2s linear infinite;
}

@keyframes type-gradient {
    0% {
        background-position: 300px 0;
    }
    100% {
        background-position: 0 0;
    }
}

.brutalist-input::placeholder {
    color: #888;
    transition: color 0.3s ease;
}

.brutalist-input:focus::placeholder {
    color: transparent;
}

.brutalist-input:focus {
    animation: focus-pulse 4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

@keyframes focus-pulse {
    0%,
    100% {
        border-color: #000;
    }
    50% {
        border-color: #4a90e2;
    }
}

/* Brutalist Button Styles - From Uiverse.io by lucifer4330k */
.brutalist-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%;
    height: 60px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    border: 3px solid #fff;
    outline: 3px solid #000;
    box-shadow: 6px 6px 0 #00a4ef;
    transition: all 0.1s ease-out;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.brutalist-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    z-index: 1;
    transition: none;
    opacity: 0;
}

@keyframes slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.brutalist-button:hover::before {
    opacity: 1;
    animation: slide 2s infinite;
}

.brutalist-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 #000;
    background-color: #000;
    color: #fff;
}

.brutalist-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 #00a4ef;
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.button-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: transform 0.2s ease-out;
    position: relative;
    z-index: 1;
}

.brutalist-button:hover .button-text {
    transform: skew(-5deg);
}

.brutalist-button:active .button-text {
    transform: skew(5deg);
}

.button-text span:first-child {
    font-size: 11px;
    text-transform: uppercase;
}

.button-text span:last-child {
    font-size: 16px;
    text-transform: uppercase;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #000;
}

.login-footer p {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        box-shadow: 10px 10px 0 #4a90e2, 20px 20px 0 rgba(74, 144, 226, 0.3);
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .brutalist-input {
        padding: 12px;
        font-size: 16px;
        box-shadow: 4px 4px 0 #000, 8px 8px 0 #4a90e2;
    }
    
    .brutalist-label {
        font-size: 12px;
        top: -30px;
    }
    
    .brutalist-button {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px 15px;
        box-shadow: 8px 8px 0 #4a90e2, 16px 16px 0 rgba(74, 144, 226, 0.3);
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .brutalist-input {
        padding: 10px;
        font-size: 14px;
        box-shadow: 3px 3px 0 #000, 6px 6px 0 #4a90e2;
    }
    
    .brutalist-label {
        font-size: 11px;
        top: -25px;
        padding: 3px 8px;
    }
    
    .brutalist-button {
        height: 50px;
    }
    
    .button-text span:first-child {
        font-size: 10px;
    }
    
    .button-text span:last-child {
        font-size: 14px;
    }
}

/* Error states */
.brutalist-input.error {
    border-color: #ff4444;
    box-shadow: 5px 5px 0 #ff4444, 10px 10px 0 rgba(255, 68, 68, 0.3);
}

.brutalist-input.error:focus {
    animation: error-pulse 2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

@keyframes error-pulse {
    0%,
    100% {
        border-color: #ff4444;
    }
    50% {
        border-color: #ff8888;
    }
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #4CAF50;
    border-color: #2E7D32;
}

.notification.error {
    background: #ff4444;
    border-color: #c62828;
}

.notification.info {
    background: #2196F3;
    border-color: #1565C0;
}
