/* style.css */
:root {
    --main: #1b3a2f;
    --hover: #2a5a4a;
}
* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: #eef2f3;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(27, 58, 47, 0.1), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(223, 230, 233, 0.5), transparent 40%);
    display: flex; flex-direction: column;
}

.hidden { display: none !important; }

/* Bot Trap - Make it invisible to humans but visible to bot code */
.bot-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }

/* Header */
header {
    background: rgba(27, 58, 47, 0.95);
    color: white; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo { font-size: 24px; font-weight: 700; }
nav { display: flex; gap: 20px; }
nav a { color: white; text-decoration: none; font-size: 14px; }
.menu-toggle { display: none; font-size: 20px; cursor: pointer; color: white; }

/* Main */
main { flex: 1; display: flex; justify-content: center; align-items: center; padding: 60px 20px; }

.container-box {
    width: 100%; max-width: 450px; padding: 40px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(27, 58, 47, 0.2);
}

h2 { text-align: center; margin-bottom: 20px; color: var(--main); font-weight: 700; }
label { display: block; margin-top: 20px; font-weight: 600; color: #555; font-size: 14px; margin-bottom: 8px; }

/* Wizard Steps */
.step-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.step-dot {
    width: 30px; height: 30px; border-radius: 50%; background: #ddd; color: white;
    display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 14px;
    transition: all 0.3s;
}
.step-dot.active { background: var(--main); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.step-line { width: 40px; height: 2px; background: #ddd; margin: 0 5px; }
.step-title { font-size: 18px; color: #333; margin-bottom: 20px; text-align: center; }

/* Inputs Base Style */
input, select {
    width: 100%; padding: 12px 12px 12px 40px; margin: 0;
    border: none; border-bottom: 2px solid #ddd;
    background-color: transparent; font-size: 16px;
    transition: border-color 0.3s ease; border-radius: 0;
    background-repeat: no-repeat; background-position: 10px center; background-size: 20px;
}
input:focus, select:focus { outline: none; border-bottom-color: var(--main); }

/* --- SPECIFIC ICONS (The Fix) --- */

/* Email Icon */
input[type="email"], #login_email, #reg_email, #reset_email_input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
}
/* Password Icon */
input[type="password"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
}
/* User / Name Icon */
#reg_name, #display_name_header {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
}
/* Mobile Phone Icon */
#reg_mobile {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>');
}
/* Map Pin Icon (City & Zip) */
#reg_city, #reg_pincode {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
}
/* Link Icon (LinkedIn) */
#reg_linkedin {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>');
}
/* List Icon (Source) */
#reg_source {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="%23555"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>');
}


.input-row { display: flex; gap: 20px; }
.input-row > div { flex: 1; }

.btn {
    color: white; padding: 14px; margin-top: 25px; border: none; cursor: pointer; width: 100%;
    border-radius: 8px; font-weight: 600; font-size: 16px; transition: all 0.3s ease;
    background-image: linear-gradient(45deg, var(--hover), var(--main));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.btn-secondary { background: #555; background-image: none; margin-top: 0; }
.btn-group { display: flex; gap: 10px; margin-top: 25px; }
.btn-group .btn { margin-top: 0; }

.action-link { color: var(--main); text-decoration: none; cursor: pointer; font-weight: 600; }
.switch-text { text-align: center; margin-top: 20px; font-size: 14px; color: #666; }
.forgot-pass { display: block; text-align: right; margin-top: 10px; font-size: 13px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.info-item { background: rgba(255,255,255,0.5); padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3); }
.info-item span { display: block; font-size: 11px; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.info-item strong { display: block; font-size: 15px; color: #333; }

.toast {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--main); color: white;
    padding: 16px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 500; display: none; z-index: 9999; animation: slideIn 0.4s ease;
}
.toast.show { display: block; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal {
    display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center;
}
.modal-content {
    background-color: #fefefe; padding: 30px; border-radius: 12px; width: 90%; max-width: 400px;
    text-align: center; position: relative;
}
.close-button { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #aaa; }

@media (max-width: 480px) {
    .input-row { flex-direction: column; gap: 0; }
    .container-box { padding: 25px; }
    .info-grid { grid-template-columns: 1fr; }
}

.input-error {
    border-bottom-color: #d32f2f !important;
    color: #d32f2f;
    background-image: none !important; /* Optional: Remove icon on error to clean up */
    animation: shake 0.3s ease-in-out;
}

/* The small error text below the input */
.field-error-msg {
    color: #d32f2f;
    font-size: 12px;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

/* Shake animation for bad inputs */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}