@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary-glow: #00e676; /* Vibrant Emerald Green */
    --secondary-glow: #00b0ff; /* Electric blue */
    --bg-dark: #0a0e17; /* Deep rich dark */
    --card-bg: rgba(16, 22, 35, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #8e9aaf;
    --font-family: 'Poppins', sans-serif;
}

/* Base resets for modern login */
.login-page-wrapper {
    font-family: var(--font-family) !important;
    background-color: var(--bg-dark);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Background animated blobs */
.bg-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    animation: orbFloat 12s infinite alternate ease-in-out;
}

.orb-1 {
    background: var(--primary-glow);
    top: -10%;
    left: -10%;
}

.orb-2 {
    background: var(--secondary-glow);
    bottom: -10%;
    right: -10%;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.2);
    }
}

/* Main glass card container */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    margin: 20px;
    z-index: 5;
    position: relative;
    box-sizing: border-box;
    text-align: center;
    animation: cardEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo styling */
.logo-container {
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.logo-container img {
    max-width: 130px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Titles */
.login-title {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 5px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Input Fields Wrapper */
.modern-input-group {
    position: relative;
    margin-bottom: 22px;
    text-align: left;
}

.modern-input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.modern-input-wrapper.focused {
    border-color: var(--primary-glow);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
    background: rgba(0, 230, 118, 0.02);
}

/* Icons inside wrapper */
.modern-input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.modern-input-wrapper.focused .modern-input-icon {
    color: var(--primary-glow);
}

/* Prefix tag like +91 */
.modern-input-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    pointer-events: none;
    border-right: 1px solid var(--border-color);
    padding-right: 10px;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Input element styling */
.modern-input-field {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 16px 16px 48px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 15px;
    box-sizing: border-box;
}

/* Adjust padding when prefix is used instead of icon */
.has-prefix .modern-input-field {
    padding-left: 70px;
}

.modern-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.modern-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); /* Blue gradient default */
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

/* Emerald green style for invester theme */
.btn-investor {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.3);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.4);
    filter: brightness(1.08);
}

.modern-btn:active {
    transform: translateY(0);
}

/* Extra links */
.modern-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 14px;
}

.modern-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-link:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

/* Adjustments for general styling */
body {
    background-color: var(--bg-dark) !important;
}

/* Captcha and Custom Form controls inside glass card */
.login-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-card .form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    color: var(--text-primary) !important;
    padding: 14px 16px !important;
    font-family: var(--font-family) !important;
    font-size: 15px !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.login-card .form-control:focus {
    border-color: var(--primary-glow) !important;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15) !important;
    background: rgba(0, 230, 118, 0.02) !important;
}

/* Password strength indicator list */
.input-popup {
    background: rgba(10, 14, 23, 0.95) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    padding: 15px !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    text-align: left !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

.input-popup p {
    margin: 6px 0 !important;
    padding-left: 20px !important;
    position: relative !important;
    color: #ff7675 !important; /* Soft light red error color */
    transition: color 0.3s ease !important;
    font-weight: 400 !important;
}

.input-popup p::before {
    content: '✖' !important;
    position: absolute !important;
    left: 0 !important;
    color: #ff7675 !important;
    font-size: 11px !important;
    top: 1px !important;
}

.input-popup p.success {
    color: #55efc4 !important; /* Soft light green success color */
}

.input-popup p.success::before {
    content: '✔' !important;
    color: #55efc4 !important;
    font-size: 11px !important;
}

/* Verification Code specific styling */
.verification-code-wrapper {
    width: 100%;
}

.verification-area {
    text-align: center;
}

.verification-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Custom styles for Verification Input boxes if any */
.verification-code {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.verification-code input {
    width: 45px !important;
    height: 45px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

