/* AgriHerd registration page */

body.auth-register-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(242, 182, 50, .18), transparent 35%),
        linear-gradient(135deg, #eef7f0 0%, #f8fbf8 50%, #eaf5ec 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.register-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 24px 32px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-back-home {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 18px;
    font-weight: 800;
    text-decoration: none;
    color: #073b24;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(7, 59, 36, 0.10);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: color 0.2s ease, transform 0.2s ease;
}

.register-back-home:hover {
    color: #2f7d32;
    transform: translateY(-1px);
}

.register-shell {
    width: 100%;
    display: flex;
    align-items: center;
}

.register-card {
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(7, 59, 36, .18);
    background: #fff;
    width: 100%;
}

.brand-panel {
    background: linear-gradient(135deg, #073b24, #2f7d32);
    color: #fff;
    padding: 48px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -110px;
    background: rgba(242, 182, 50, .18);
    border-radius: 50%;
}

.brand-panel > .position-relative {
    z-index: 2;
}

.logo-mark {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 24px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.brand-tagline {
    color: #f2b632;
    font-weight: 800;
    letter-spacing: .14em;
    font-size: .82rem;
}

.brand-copy {
    opacity: .82;
    line-height: 1.7;
    max-width: 430px;
    margin-top: 22px;
}

.feature-list {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    opacity: .95;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-panel {
    padding: 48px;
}

.form-title {
    font-weight: 900;
    color: #073b24;
    letter-spacing: -0.035em;
}

.form-subtitle {
    color: #6c757d;
}

.auth-register-page .form-label {
    font-weight: 700;
    color: #203528;
    font-size: .9rem;
}

.auth-register-page .form-control {
    border-radius: 16px;
    padding: 13px 15px;
    border-color: #dce7df;
}

.auth-register-page .form-control:focus {
    border-color: #2f7d32;
    box-shadow: 0 0 0 .2rem rgba(47, 125, 50, .15);
}

.login-link {
    color: #2f7d32;
    font-weight: 800;
    text-decoration: none;
}

.login-link:hover {
    color: #073b24;
}

.auth-register-page .alert {
    border-radius: 16px;
}

.small-note {
    font-size: .84rem;
    color: #6c757d;
    line-height: 1.6;
}

.referral-box {
    border: 1px solid #d8efe0;
    background: #f3faf5;
    color: #073b24;
    border-radius: 16px;
    padding: 13px 15px;
    font-size: .9rem;
    font-weight: 700;
}

/* Primary submit — hardcoded so it stays visible even if shared button CSS fails to load */
.auth-register-page .btn-register-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 15px 22px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2f7d32, #43a047);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 12px 30px rgba(47, 125, 50, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.auth-register-page .btn-register-submit:hover,
.auth-register-page .btn-register-submit:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #267a2b, #3d9142);
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(47, 125, 50, 0.38);
}

.auth-register-page .btn-register-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(47, 125, 50, 0.28);
}

.auth-register-page .btn-register-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 991px) {
    .register-page {
        padding: 16px 16px 24px;
        justify-content: flex-start;
    }

    .register-back-home {
        margin-bottom: 14px;
    }

    .brand-panel,
    .form-panel {
        padding: 32px;
    }

    .brand-title {
        font-size: 2rem;
    }
}
