* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #03060c;
    min-height: 100vh; 
    overflow-y: auto; 
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8affd4;
    padding: 40px 20px;
}

.background-grid {
    position: fixed; 
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 10s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    from { transform: translateY(0px); }
    to { transform: translateY(40px); }
}

#matrixRain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 1050px; 
    max-width: 98%;
    padding: 40px; 
    border-radius: 20px;
    background: rgba(5, 10, 20, 0.75);
    border: 1px solid rgba(0, 255, 170, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 255, 170, 0.12);
    display: flex;
    flex-direction: column;
    gap: 25px; 
}

.login-header {
    text-align: center;
}

.logo {
    width: 180px; 
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 12px rgba(0, 255, 170, 0.5));
}

h1 {
    letter-spacing: 3px;
    color: #00ffae;
    font-size: 26px; 
    margin-bottom: 5px;
}

.subtitle {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 2px;
}

.login-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    align-items: stretch; 
}

.login-panel {
    display: flex;
    flex-direction: column;
}

input {
    width: 100%;
    padding: 16px; 
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    outline: none;
    font-size: 15px; 
    transition: 0.3s;
    letter-spacing: 1px;
}

input:focus {
    border-color: #00ffae;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

button {
    width: 100%;
    padding: 16px; 
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(90deg, #00ff99, #00b3ff);
    color: #02120c;
    letter-spacing: 1px;
    font-size: 14px; 
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.4);
}

#status {
    margin-top: 15px;
    white-space: pre-line;
    line-height: 1.6;
    font-size: 13px;
    padding: 15px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    min-height: 120px; 
}

#status.show { opacity: 1; }
.success { color: #00ffae; background: rgba(0, 255, 170, 0.1); border: 1px solid rgba(0, 255, 170, 0.3); }
.error { color: #ff4d4d; background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.3); }


.terminal-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    
    padding: 20px 0; 
}

.terminal {
    flex-grow: 1; 
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px; 
    font-size: 13px; 
    line-height: 1.8;
    color: #5b9982;
    border: 1px solid rgba(0, 255, 170, 0.1);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    
    overflow-y: auto; 
    overflow-x: hidden;
    min-height: 0; 
    
    display: flex;
    flex-direction: column;
}

.terminal > div:first-child {
    margin-top: auto;
}

.terminal div {
    animation: fadeIn 0.2s ease-in;
}


.terminal::-webkit-scrollbar {
    width: 6px;
}
.terminal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.terminal::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 170, 0.3);
    border-radius: 10px;
}
.terminal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 170, 0.6);
}