:root {
    --green: #6da32d;
    --green-light: #eaf3df;
    --green-dark: #5a8a24;
    --border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background: #fff;
}

/* HEADER */
.auth-header {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 50px;
}

.logo {
    font-size: 34px;
    font-weight: 800;
}

.logo span {
    color: var(--green);
}

.tagline {
    font-size: 14px;
    color: #777;
}

/* The Parent Container */
.auth-wrapper {
    display: flex;
    /* Enables Flexbox */
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    min-height: 100vh;
    /* Takes full height of the screen */
    width: 100%;
    padding: 20px;
    /* Prevents card from touching edges on mobile */
    background-color: #f5f5f5;
    /* Optional: light grey to make card pop */
    box-sizing: border-box;
}

/* The Card itself */
.auth-card {
    max-width: 420px;
    width: 100%;
    padding: 35px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* Ensures padding doesn't break the width */
}

/* TABS */
.tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    transition: 0.3s ease;
}

.tab:hover {
    background: var(--green-light);
}

.tab.active {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* FORM */
h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

label {
    font-size: 13px;
}

/* Container for the input and the icon */
/* Container styling */
.input-box {
    position: relative; /* Essential for placing icons inside */
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 5px;
}


/* LINKS */
.form-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.form-row.center {
    justify-content: center;
	margin-top: 10px;    /* Space above the link */
   
}

.link {
    font-size: 12px;
    color: var(--green);
    text-decoration: none;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--green-dark);
}





#toast {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 15px;
    margin-bottom: 0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.4s ease;
}

#toast.show {
    opacity: 1;
    max-height: 100px;
    padding: 12px;
    margin-bottom: 15px;
}

#toast.success {
    background: #4CAF50;
}

#toast.error {
    background: #f44336;
}

#toast.info {
    background: #2196F3;
}

.input-error {
    border-color: #f44336 !important;
}

.input-success {
    border-color: #4CAF50 !important;
}

/* OTP input styling */
#otp {
    letter-spacing: 8px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.otp-container {
    position: relative;
}

.otp-container small {
    display: block;
    text-align: center;
    margin-top: 5px;
    color: #666;
}

.contact-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.email-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.phone-badge {
    background: #e8f5e8;
    color: #2e7d32;
}

#contactHelp {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}


/* Container for the input and the icon */
/* Container styling */
.input-box {
    position: relative;
    /* Essential for placing icons inside */
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Input field styling */
.input-box input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    /* Space for icons on both sides */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-box input:focus {
    border-color: #007bff;
}

/* Icons (General) */
.input-box i {
    position: absolute;
    color: #888;
}

/* Left side icons (Envelope, Lock, etc.) */
.input-box i:not(.eye) {
    left: 15px;
}

/* The Eye Icon (Right side) */
.input-box .eye {
    right: 15px;
    cursor: pointer;
    z-index: 10;
    /* Makes sure it stays on top to be clickable */
}

.input-box .eye:hover {
    color: #333;
}


