:root {
    --green: #0c96d6;
    --green-light: #97d9f8;
    --green-dark: #13719d;
    --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: 30px;
}


.auth-header p {
    
    background-color: #0c96d6;
    color: #f5f5f5;
    

}

.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: 15px;
}

.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;
    
}

/* 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;
}


/* 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);
}


/* OTP button inside input */
.otp-box {
    position: relative;
}

.otp-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 10px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.otp-btn:hover {
    background: var(--green-dark);
}

/* adjust input padding so button doesn't overlap */
.otp-box input {
    padding-right: 100px;
}





/* Toast CSS */
#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 15px; 
    margin-bottom: 15px; 
}
#toast.success { background: #4CAF50; }
#toast.error { background: #f44336; }
#toast.exists { background: #ff9800; }

.logo {
    cursor: pointer;

}