/* ==========================================
   PUBLIC AUTH CSS (Login, Register, Accept Invite, Forgot)
   VMS Crew – Premium Minimal Style
========================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

/* PAGE BACKGROUND */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #F4F6F8;
}

/* CENTER WRAPPER */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* AUTH CARD */
.auth-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    border: 1px solid #e8eaed;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #1a1d24;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 22px;
}

/* FORM INPUTS */
.auth-card .form-control {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #d5d9de;
    transition: 0.25s ease;
}

.auth-card .form-control:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 0 3px rgba(77,163,255,0.18);
}

/* SUBMIT BUTTON */
.auth-btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #4da3ff, #3c90e4);
    color: white;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(77,163,255,0.35);
}

/* ALERTS */
.auth-alert {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Error */
.auth-alert-danger {
    background: #ffe5e5;
    color: #b30000;
}

/* Success */
.auth-alert-success {
    background: #e5ffe9;
    color: #107a2b;
}

/* Information (INVITE INFO BOX) */
.auth-alert-info {
    background: #eef6ff;
    color: #0b3a67;
    border: 1px solid #d6e8ff;
}

/* LINKS */
.auth-links {
    text-align: center;
    margin-top: 18px;
}

.auth-links a {
    color: #1b6ec2;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* ============================================================
   SEGMENTED PASSWORD STRENGTH BAR — Register Page
   Premium GitHub / Linear Style (Isolated for Auth Pages)
============================================================ */

.password-strength-wrapper {
    margin-top: 8px;
}

.password-strength-segments {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.password-strength-segments .segment {
    flex: 1;
    height: 7px;
    border-radius: 6px;
    background: #eceff3; /* idle */
    transition:
        background-color 0.25s ease-in-out,
        transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.25s ease-in-out;
}

.password-strength-segments .segment.active {
    transform: scaleY(1.35);
}

/* COLORS (premium palette) */
.password-strength-segments .segment.red {
    background: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.password-strength-segments .segment.orange {
    background: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.password-strength-segments .segment.blue {
    background: #3b82f6 !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}

.password-strength-segments .segment.green {
    background: #22c55e !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
}

/* ==========================
   AUTH PASSWORD FIELD (EYE)
========================== */

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    cursor: pointer;
    color: #6b7280;
    transition: 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #1b6ec2;
}

/* Make sure the input has room for the icon */
.password-input {
    padding-right: 40px !important;
}
