﻿/* =========================
   ENAF AUTH (LOGIN / REGISTER)
   NO DASHBOARD STYLES HERE
========================= */

:root {
    --enaf-primary: #6A1B9A;
    --enaf-accent: #8E24AA;
    --enaf-text: #2c2c2c;
    --enaf-bg: #f6f6f8;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f3e5f5, #ffffff);
    color: var(--enaf-text);
}

/* ===== Centered auth page ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== Card ===== */
.loginbox {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
}

/* ===== Logo ===== */
.auth-logo img {
    max-width: 140px;
    margin-bottom: 12px;
}

/* ===== Title ===== */
.portal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--enaf-primary);
    margin-bottom: 20px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-input,
.phone-input,
.country-code-select {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

    .form-input:focus,
    .phone-input:focus,
    .country-code-select:focus {
        outline: none;
        border-color: var(--enaf-primary);
        box-shadow: 0 0 0 2px rgba(106,27,154,0.15);
    }

/* ===== Phone layout ===== */
.phone-input-container {
    display: flex;
    gap: 8px;
}

.country-code-select {
    max-width: 120px;
}

/* ===== Buttons ===== */
.loginbutton {
    width: 100%;
    padding: 12px;
    background: var(--enaf-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .loginbutton:hover {
        background: var(--enaf-accent);
    }

/* ===== Links ===== */
.auth-links {
    margin-top: 15px;
    font-size: 0.9rem;
}

    .auth-links a {
        color: var(--enaf-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-links a:hover {
            text-decoration: underline;
        }

/* ===== Alerts ===== */
.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-danger,
.alert-error {
    background: #fdecea;
    color: #c62828;
}
