* {
    box-sizing: border-box;
}

body {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(166, 119, 43, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(90, 22, 22, 0.25), transparent 35%),
        linear-gradient(135deg, #050505 0%, #101010 45%, #1a120d 100%);
    color: #f3ead7;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 20px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(45deg, #fff 1px, transparent 1px),
        linear-gradient(-45deg, #fff 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -1;
}

.contenedor {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tarjeta {
    background:
        linear-gradient(180deg, #171717, #0c0c0c);
    border: 1px solid rgba(215, 170, 74, 0.42);
    border-left: 6px solid #d7aa4a;
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    color: #f3ead7;
    overflow: hidden;
    padding: 34px 32px;
    position: relative;
    width: 390px;
}

.tarjeta::before {
    content: "✂";
    color: rgba(215, 170, 74, 0.1);
    font-size: 160px;
    position: absolute;
    right: -12px;
    top: -38px;
    transform: rotate(-20deg);
}

.tarjeta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(215, 170, 74, 0.045) 0,
            rgba(215, 170, 74, 0.045) 2px,
            transparent 2px,
            transparent 12px
        );
}

h1 {
    color: #f3ead7;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 22px;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

h1::after {
    background: #d7aa4a;
    content: "";
    display: block;
    height: 4px;
    margin-top: 14px;
    width: 90px;
}

label {
    color: #d7aa4a;
    display: block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.8px;
    margin-top: 16px;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

input {
    background: #080808;
    border: 1px solid rgba(215, 170, 74, 0.35);
    border-radius: 0;
    color: #f3ead7;
    font-size: 16px;
    margin-top: 8px;
    padding: 13px 12px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    z-index: 1;
}

input:focus {
    border-color: #d7aa4a;
    box-shadow: 0 0 18px rgba(215, 170, 74, 0.18);
    outline: none;
}

button {
    background: #d7aa4a;
    border: 1px solid #d7aa4a;
    border-radius: 0;
    color: #050505;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 22px;
    padding: 14px;
    position: relative;
    text-transform: uppercase;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    z-index: 1;
}

button:hover {
    background: #f4cf73;
    box-shadow: 0 0 25px rgba(215, 170, 74, 0.25);
    transform: translateY(-3px);
}

a {
    color: #d7aa4a;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

a:hover {
    color: #f4cf73;
}

p {
    position: relative;
    z-index: 1;
}

#mensaje {
    font-weight: bold;
    margin-top: 16px;
    min-height: 20px;
}

#mensaje.error {
    background: rgba(179, 38, 30, 0.12);
    border-left: 4px solid #d35a4a;
    color: #ff8a7a;
    padding: 10px 12px;
}

#mensaje.exito {
    background: rgba(55, 145, 85, 0.12);
    border-left: 4px solid #4ad37d;
    color: #8affb4;
    padding: 10px 12px;
}

@media (max-width: 480px) {
    .tarjeta {
        width: 100%;
        padding: 30px 24px;
    }

    h1 {
        font-size: 28px;
    }
}