/* ============================================================
   auth.css — shared styling for the public authentication pages
   (login, create company, forgot password, reset password).
   Two-panel responsive layout: branding panel + form card.
   Brand colour: #25A4D4 (matches layout-cyan-light).
   ============================================================ */

* { box-sizing: border-box; }

body.atl-login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
}

/* ── Left branding panel ── */
.atl-panel-brand {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0d7ea8 0%, #25A4D4 45%, #1ac8e0 100%);
}

.atl-panel-brand::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -120px;
    right: -140px;
}

.atl-panel-brand::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -80px;
    left: -80px;
}

.atl-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 400px;
    width: 100%;
}

.atl-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.atl-brand-logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

.atl-brand-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.atl-brand-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0 0 3rem;
}

.atl-feature-list {
    list-style: none;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

.atl-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.atl-feature-list li:last-child { border-bottom: none; }

.atl-feature-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #fff;
}

/* ── Right form panel ── */
.atl-panel-form {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    background: #f0f4f8;
}

.atl-form-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ── Language switcher ── */
.atl-lang {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.atl-lang a { line-height: 0; }

.atl-lang img {
    width: 24px !important;
    height: auto;
    border-radius: 3px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
}

.atl-lang img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ── Form header ── */
.atl-form-header { margin-bottom: 1.75rem; }

.atl-form-header h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.35rem;
}

.atl-form-header p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* ── Fields ── */
.atl-field { margin-bottom: 1.2rem; }

.atl-field label,
.atl-field .ui-outputlabel {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 0.45rem !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.atl-input-wrap { position: relative; }

.atl-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.atl-input-wrap .ui-inputfield,
.atl-input-wrap input {
    width: 100% !important;
    padding: 0.72rem 0.9rem 0.72rem 2.4rem !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    background: #f7fafc !important;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
    outline: none !important;
    box-shadow: none !important;
}

.atl-input-wrap .ui-inputfield:focus,
.atl-input-wrap input:focus {
    border-color: #25A4D4 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(37, 164, 212, 0.15) !important;
}

/* ── Primary button ── */
.atl-btn .ui-button,
.atl-btn.ui-button {
    width: 100% !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #25A4D4 0%, #0d7ea8 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.78rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s !important;
    box-shadow: 0 4px 14px rgba(37, 164, 212, 0.35) !important;
    margin-top: 0.5rem !important;
}

.atl-btn .ui-button:hover,
.atl-btn.ui-button:hover {
    opacity: 0.92 !important;
    box-shadow: 0 6px 20px rgba(37, 164, 212, 0.45) !important;
    transform: translateY(-1px) !important;
}

.atl-btn .ui-button:active,
.atl-btn.ui-button:active { transform: translateY(0) !important; }

/* ── Captcha ── */
.atl-captcha {
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
}

/* ── Footer links / note ── */
.atl-form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #edf2f7;
}

.atl-form-links a {
    font-size: 0.83rem !important;
    color: #25A4D4 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.atl-form-links a:hover {
    color: #0d7ea8 !important;
    text-decoration: underline !important;
}

.atl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 0.83rem !important;
    color: #25A4D4 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.atl-back-link:hover { color: #0d7ea8 !important; text-decoration: underline !important; }

.atl-footer-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: #a0aec0;
}

/* ── Validation messages ── */
.atl-field .ui-message,
.atl-field .ui-messages {
    display: block;
    margin-top: 0.4rem;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.atl-field .ui-message-error-detail,
.atl-field .ui-messages-error-detail,
.atl-field .ui-message-error,
.atl-field .ui-messages-error {
    color: #e53e3e !important;
    font-size: 0.78rem !important;
}

.atl-field .ui-message-error-icon,
.atl-field .ui-messages-error-icon { color: #e53e3e !important; }

/* ── Growl ── */
.ui-growl {
    top: 1rem !important;
    right: 1rem !important;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .atl-panel-brand { width: 40%; padding: 2.5rem; }
    .atl-panel-form { width: 60%; }
    .atl-feature-list { display: none; }
    .atl-brand-subtitle { margin-bottom: 0; }
}

@media (max-width: 768px) {
    body.atl-login-body { flex-direction: column; }

    .atl-panel-brand {
        width: 100%;
        padding: 2.25rem 1.5rem;
    }

    .atl-brand-logo { margin-bottom: 1.25rem; padding: 0.75rem 1.25rem; }
    .atl-brand-logo img { max-width: 150px; }
    .atl-brand-title { font-size: 1.6rem; }
    .atl-brand-subtitle { font-size: 0.9rem; }

    .atl-panel-form {
        width: 100%;
        padding: 2rem 1rem 3rem;
    }

    .atl-form-card { padding: 2rem 1.5rem; }
}

@media (max-width: 420px) {
    .atl-form-card { padding: 1.5rem 1.15rem; border-radius: 12px; }
    .atl-form-header h2 { font-size: 1.35rem; }
}
