﻿:root {
    --green: #7AB700;
    --green-dark: #006A4B;
    --bg: #F6F8F7;
    --surface: #fff;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --ring: rgba(28,154,99,.18);
    --radius: 16px;
}

/* Canvas */
.register-hero {
    background: radial-gradient(900px 520px at 14% 84%, #eaf7f0 0%, transparent 65%), radial-gradient(720px 420px at 86% 12%, #eefaf3 0%, transparent 55%), var(--bg);
    padding: 40px 0;
    width: 100%;
    min-height: 70vh;
}

.register-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Card */
.register-card {
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 0 rgba(16,24,40,.02), 0 1px 2px rgba(16,24,40,.06);
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.register-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 8px;
}

.register-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* Form */
.register-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 600;
}

    .field label span {
        color: var(--green-dark);
    }

.field--checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .field--checkbox label {
        margin-bottom: 0;
        font-size: 13px;
        font-weight: 400;
        cursor: pointer;
    }

    .field--checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--green-dark);
    }

.input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .input::placeholder {
        color: #9CA3AF;
    }

    .input:focus {
        border-color: var(--green-dark);
        box-shadow: 0 0 0 4px var(--ring);
    }

select.input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.hint {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.val-msg {
    display: block;
    color: #B45309;
    font-size: 12px;
    margin-top: 4px;
}

/* Alerts */
.alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

    .alert.success {
        background: #ECFDF5;
        color: #065F46;
        border: 1px solid #A7F3D0;
    }

    .alert.error {
        background: #FEF2F2;
        color: #991B1B;
        border: 1px solid #FECACA;
    }

/* Button */
.btn-primary {
    margin-top: 6px;
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--green), #6EB31F);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .08s ease, filter .15s ease, opacity .15s ease;
}

    .btn-primary:hover {
        filter: brightness(1.02);
        background: var(--green-dark);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary[disabled] {
        cursor: not-allowed;
        opacity: .8;
    }

/* Links */
.form-links {
    text-align: center;
    margin-top: 10px;
}

.link-secondary {
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
}

    .link-secondary:hover {
        text-decoration: underline;
    }

.link-separator {
    color: var(--muted);
    margin: 0 6px;
}

/* Searchable pharmacy dropdown */
.pharmacy-search-wrapper {
    position: relative;
}

.pharmacy-dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.pharmacy-option {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background .1s;
}

    .pharmacy-option:hover,
    .pharmacy-option--active {
        background: #f0faf4;
        color: var(--green-dark);
    }

.pharmacy-option--more {
    color: var(--muted);
    font-style: italic;
    cursor: default;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 639px) {
    .form-row-group {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .register-card {
        max-width: 500px;
    }
}

@media (min-width: 960px) {
    .register-card {
        max-width: 520px;
    }
}

@media (min-width: 1200px) {
    .register-card {
        max-width: 600px;
    }
}
