:root {
    --bg-dark: #070d1d;
    --bg-accent: #081934;
    --cyan: #00eaff;
    --cyan-soft: rgba(0, 234, 255, 0.14);
    --text: #f2f8ff;
    --text-soft: #abc1df;
    --danger: #ff7676;
    --success: #65f0b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    background:
        url('/techcoreAI/img/fondo.png') center center / cover no-repeat;
    color: var(--text);
}

.reg-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.reg-card {
    width: min(560px, 100%);
    background: rgba(16, 29, 55, 0.72);
    border: 1px solid rgba(0, 234, 255, 0.48);
    box-shadow: 0 0 28px rgba(0, 234, 255, 0.16);
    border-radius: 22px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.reg-card h1 {
    font-size: 1.95rem;
    margin-bottom: 8px;
}

.reg-card > p {
    color: var(--text-soft);
    margin-bottom: 18px;
    line-height: 1.5;
}

.alert-error,
.alert-success {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.94rem;
}

.alert-error {
    background: rgba(255, 118, 118, 0.14);
    border: 1px solid rgba(255, 118, 118, 0.55);
    color: #ffd6d6;
}

.alert-success {
    background: rgba(101, 240, 178, 0.14);
    border: 1px solid rgba(101, 240, 178, 0.55);
    color: #dcffef;
}

.reg-form {
    display: grid;
    gap: 12px;
}

.reg-form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.reg-form input,
.reg-form select {
    width: 100%;
    border: 1px solid rgba(171, 193, 223, 0.35);
    background: rgba(7, 14, 28, 0.82);
    color: var(--text);
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

.reg-form input:focus,
.reg-form select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.18);
}

.reg-grid {
    display: grid;
    gap: 12px;
}

.reg-note {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid rgba(0, 234, 255, 0.5);
    padding-left: 12px;
    margin-bottom: 4px;
}

.reg-form button {
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #031426;
    background: linear-gradient(120deg, #4ef5ff, #16c8ff);
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--text-soft);
    text-decoration: none;
}

.back-link:hover {
    color: var(--cyan);
}

@media (min-width: 700px) {
    .reg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
