/* Reset default browser margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --card-bg: rgba(46, 52, 54, 0.8);  /* Linux Mint dark mode background grey */
    --card-border: rgba(255, 255, 255, 0.2);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --highlight: rgba(255, 255, 255, 0.1);
    --text-color: #f4f4f4;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url(img/background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: blur(2px);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    z-index: 10;
}

.login-box {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 3rem;
    width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    box-shadow: 
        0 15px 35px var(--card-shadow),
        0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.login-box:hover {
    transform: 
        scale(1.05) 
        rotateX(10deg);
    box-shadow: 
        0 25px 50px var(--card-shadow),
        0 10px 20px rgba(0,0,0,0.2);
}

.logo-container {
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 150px;
    border-radius: 50%;
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.5s ease;
    margin: 0 auto;
}

.login-logo:hover {
    transform: 
        perspective(1000px) 
        rotateY(-15deg) 
        scale(1.1);
}

h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    transform: translateZ(30px);
}

h3 {
    color: var(--text-color);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    transform: translateZ(30px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    perspective: 1000px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transform: 
        translateZ(20px) 
        rotateX(5deg);
}

button {
    background: rgba(255, 59, 48, 0.2);
    border: none;
    padding: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

button:hover {
    background: rgba(255, 59, 48, 0.4);
}

button:hover::before {
    opacity: 0.2;
}

.error-message {
    color: #dc3545;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(20px);
}

.error-message.show {
    opacity: 1;
}

.access-info {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.header-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    margin-bottom: 1rem;
    color: #00ff7f;
    text-align: center;
}

.lockout-timer {
    color: #ff4500;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(20px);
}

.lockout-timer.show {
    opacity: 1;
}

.lockout-warning {
    background-color: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: #ff4500;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(20px);
}

.lockout-warning.show {
    opacity: 1;
}

.lockout-warning .lockout-duration {
    color: #ff1493;
    font-weight: bold;
}