/* =============================================
   REMI Public Portal - Stylesheet
   Color scheme: sage green (#8B9B78) matching Remi brand
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F5F3EE;
    color: #4A4A4A;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

a {
    color: #8B9B78;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7A8A67;
    text-decoration: underline;
}

/* --- Layout --- */
.remi-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* --- Logo / Header --- */
.remi-header {
    text-align: center;
    margin-bottom: 28px;
}

.remi-logo-img {
    max-width: 160px;
    height: auto;
    margin-bottom: 6px;
}

.remi-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #8B9B78;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.remi-header p {
    font-size: 0.92rem;
    color: #999;
    font-weight: 400;
}

/* --- Card --- */
.remi-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 44px;
}

.remi-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 28px;
    text-align: center;
}

/* --- Two-Column Form Grid --- */
.remi-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.remi-field-full {
    grid-column: 1 / -1;
}

/* --- Form Elements --- */
.remi-field {
    margin-bottom: 18px;
}

.remi-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.remi-field input[type="text"],
.remi-field input[type="email"],
.remi-field input[type="password"],
.remi-field input[type="tel"],
.remi-field textarea,
.remi-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #DDD9D1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #4A4A4A;
    background: #FAFAF8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.remi-field input:focus,
.remi-field textarea:focus,
.remi-field select:focus {
    border-color: #8B9B78;
    box-shadow: 0 0 0 3px rgba(139, 155, 120, 0.15);
    background: #FFF;
}

.remi-field input::placeholder,
.remi-field textarea::placeholder {
    color: #BBB;
}

.remi-field textarea {
    resize: vertical;
    min-height: 70px;
}

/* ASP.NET textbox styling (rendered as input) */
.remi-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #DDD9D1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #4A4A4A;
    background: #FAFAF8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.remi-input:focus {
    border-color: #8B9B78;
    box-shadow: 0 0 0 3px rgba(139, 155, 120, 0.15);
    background: #FFF;
}

/* --- Buttons --- */
.remi-btn {
    display: inline-block;
    width: 100%;
    padding: 13px 24px;
    background: #8B9B78;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
    letter-spacing: 0.3px;
}

.remi-btn:hover {
    background: #7A8A67;
}

.remi-btn:active {
    transform: scale(0.98);
}

.remi-btn-secondary {
    background: transparent;
    color: #8B9B78;
    border: 1.5px solid #8B9B78;
}

.remi-btn-secondary:hover {
    background: #F0EEE8;
    color: #7A8A67;
    border-color: #7A8A67;
}

.remi-btn-small {
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* --- Messages --- */
.remi-message {
    display: block;
    text-align: center;
    padding: 10px 14px;
    margin-top: 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    min-height: 20px;
}

.remi-message-error {
    color: #D32F2F;
    background: #FDECEA;
}

.remi-message-success {
    color: #2E7D32;
    background: #E8F5E9;
}

/* --- Links Section --- */
.remi-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #999;
}

.remi-links a {
    font-weight: 500;
}

.remi-links .separator {
    margin: 0 8px;
    color: #CCC;
}

/* --- Verification Code Input --- */
.remi-code-input {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 12px;
    font-weight: 600;
    padding: 14px 20px;
}

/* --- Section Titles --- */
.remi-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #8B9B78;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* --- Divider --- */
.remi-divider {
    border: none;
    border-top: 1px solid #E8E4DC;
    margin: 8px 0 20px;
}

/* --- Footer --- */
.remi-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.8rem;
    color: #BBB;
}

/* --- Two column button layout --- */
.remi-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.remi-btn-row .remi-btn {
    flex: 1;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .remi-form-grid {
        grid-template-columns: 1fr;
    }
    .remi-card {
        padding: 28px 22px;
        border-radius: 12px;
    }
    .remi-logo-img {
        max-width: 140px;
    }
    .remi-btn-row {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    body {
        padding: 16px 12px;
    }
    .remi-card {
        padding: 22px 16px;
    }
    .remi-field input[type="text"],
    .remi-field input[type="email"],
    .remi-field input[type="password"],
    .remi-field input[type="tel"],
    .remi-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
