main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f3f3f3;
    padding: 2rem 1rem;
    min-height: 100vh;
    overflow-y: auto;
}

/* ---------- FORM CONTAINER ---------- */
.register-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.register-box {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

register-form {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease;
}

/* ---------- HEADERS ---------- */
.register-header h1 {
    text-align: center;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.register-header p {
    text-align: center;
    color: #777;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ---------- FORM FIELDS ---------- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: border 0.3s, background 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #888;
    background-color: #fff;
    outline: none;
}

/* ---------- BUTTON ---------- */
.btn-register {
    width: 100%;
    background: #555;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.btn-register:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ---------- ALERT & SUCCESS ---------- */
.alert,
.success {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.alert {
    background: #fbeaea;
    color: #b71c1c;
    border: 1px solid #f5c2c2;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* ---------- FOOTER ---------- */
.register-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #777;
    font-size: 0.95rem;
}

/* ---------- LINK STYLES ---------- */
.register-footer a,
.success a {
    color: #444;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border 0.3s;
}

.register-footer a:hover,
.success a:hover {
    color: #000;
    border-bottom: 1px solid #444;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-height: 700px) {
    main {
        padding: 1rem;
    }

    .register-box {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 0.5rem;
    }

    .register-box {
        padding: 1.5rem 1rem;
    }

    .register-header h1 {
        font-size: 1.5rem;
    }

    .form-group input {
        font-size: 0.95rem;
    }
}

/* ---------- ANIMATION ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
