/* लॉगिन और रजिस्ट्रेशन पेजों के लिए मुख्य बॉडी स्टाइल */
body {
    font-family: 'Poppins', sans-serif;
    /* एक सुंदर ग्रेडिएंट बैकग्राउंड */
    background: linear-gradient(135deg, #1d2b4a, #000000);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* मुख्य फॉर्म कंटेनर */
.auth-container {
    width: 100%;
    max-width: 420px;
    /* अर्ध-पारदर्शी बैकग्राउंड और ब्लर प्रभाव */
    background-color: rgba(20, 25, 40, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* होम आइकन की पोजीशनिंग के लिए यह आवश्यक है */
}

/* फॉर्म का हेडर (जैसे 'Welcome Back!') */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .icon {
    font-size: 40px;
    color: #00A3FF;
    margin-bottom: 10px;
}

.auth-header h2 {
    margin: 0;
    font-weight: 600;
}

/* आइकन वाले इनपुट फ़ील्ड के लिए रैपर */
.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    transition: color 0.3s;
}

/* इनपुट फ़ील्ड का स्टाइल */
.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 50px; /* आइकन के लिए बाईं ओर जगह */
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00A3FF;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.5);
}

.input-wrapper input:focus + i {
    color: #00A3FF; /* फोकस होने पर आइकन का रंग बदलें */
}

/* मुख्य सबमिट बटन */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #00A3FF, #007acc);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 163, 255, 0.4);
}

/* नीचे का लिंक (जैसे 'Don't have an account?') */
.auth-link {
    text-align: center;
    margin-top: 25px;
    color: #b0b0b0;
}

.auth-link a {
    color: #00A3FF;
    text-decoration: none;
    font-weight: 500;
}

/* त्रुटि और सफलता संदेशों के लिए स्टाइल */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.9em;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.message.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.message ul {
    padding-left: 20px;
    margin: 0;
}

/* पासवर्ड मिलान न होने पर त्रुटि के लिए स्टाइल (केवल रजिस्ट्रेशन पेज) */
#password-match-error {
    color: #ffae00;
    font-size: 0.9em;
    text-align: left;
    height: 20px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* प्रमाणीकरण पेजों पर 'होम' आइकन लिंक के लिए स्टाइल (अपडेट किया हुआ) */
.home-icon-link {
    position: absolute; /* .auth-container के सापेक्ष */
    top: 20px;       /* ऊपर से 20px */
    left: 20px;      /* बाईं ओर से 20px */
    color: #ffffff;  /* आइकन का रंग सफ़ेद */
    font-size: 1.5em; /* आइकन का आकार थोड़ा बड़ा */
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
    opacity: 0.7;    /* थोड़ा पारदर्शी */
}

.home-icon-link:hover {
    transform: scale(1.1);
    color: #00A3FF;  /* होवर पर रंग बदलें */
    opacity: 1;
}