@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&display=swap');

body {
    background: #0b0b0b;
    color: #1e1e1e;
    font-family: 'Roboto Mono', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(30,25,20,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(40,35,25,0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(20,20,20,0.03) 35px, rgba(20,20,20,0.03) 70px);
}

form {
    background: #fdfcf7;
    padding: 50px 60px;
    max-width: 480px;
    width: 100%;
    border: 1px solid #8c7452;
    border-top: 2px solid #b8a685;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    
    animation: breathe 12s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
    50%      { box-shadow: 0 20px 50px rgba(0,0,0,0.75); }
}

form::before, form::after {
    content: '';
    position: absolute;
    left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8a685, transparent);
    opacity: 0.6;
    animation: lineFade 8s infinite alternate ease-in-out;
}
form::before { top: 0; }
form::after  { bottom: 0; }

@keyframes lineFade {
    0%   { opacity: 0.4; }
    100% { opacity: 0.8; }
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: #1e1e1e;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #5c4935;
    font-weight: 500;
    transition: color 0.4s;
}

input {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #8c7452;
    color: #1e1e1e;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    transition: all 0.4s ease;
}

input:focus {
    border-bottom: 2px solid #1e1e1e;
    padding-left: 8px;
    background: rgba(140,116,82,0.04);
}

button {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    background: transparent;
    border: 1.5px solid #8c7452;
    color: #1e1e1e;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: #8c7452;
    color: #fdfcf7;
    letter-spacing: 6px;
}

form > div:last-of-type::after {
    content: '◆';
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #b8a685;
    font-size: 1.1rem;
    opacity: 0.5;
    animation: diamond 10s infinite ease-in-out;
}

@keyframes diamond {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.15); }
}

@media (max-width: 500px) {
    form { padding: 40px 30px; }
}