/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #1e3a8a;
    color: #111827;
}

/* =========================
   LAYOUT
========================= */
.register-wrapper {
    min-height: 100vh;
    display: flex;
}

/* =========================
   INFO LEFT
========================= */
.register-info {
    flex: 1;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    padding: 80px 70px;
}

.register-info h1 {
    font-size: 46px;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 35px;
}

.benefits {
    list-style: none;
}

.benefits li {
    margin-bottom: 12px;
    font-size: 16px;
}

.badge {
    margin-top: 35px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    display: inline-block;
    font-weight: 600;
}

/* =========================
   FORM RIGHT
========================= */
.register-box {
    flex: 1;
    background: #ffffff;
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-box h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

/* =========================
   FORM
========================= */
.register-box label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
    color: #374151;
}

.register-box input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    transition: all .25s ease;
}

.register-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.input.focused {
    transform: translateY(-1px);
}

/* =========================
   BUTTON
========================= */
.register-box button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-text {
    transition: opacity .2s ease;
}

.btn-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading .btn-text {
    opacity: 0;
}

.loading .btn-loader {
    display: flex;
}

.btn-loader::after {
    content: "";
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =========================
   LINKS
========================= */
.login-link {
    margin-top: 20px;
    font-size: 14px;
}

.login-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   FOOTER
========================= */
footer {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.9);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width: 900px) {
    .register-wrapper {
        flex-direction: column;
    }

    .register-info,
    .register-box {
        padding: 50px 35px;
    }

    footer {
        position: static;
        margin: 20px 0;
    }
}
