@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at center, #101524 0%, #07090e 100%);
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Glowing background blobs via pseudo-elements */
body::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.container {
    background: rgba(20, 24, 38, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 420px;
    z-index: 10;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.1);
}

.login-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    background: rgba(9, 13, 22, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    font-size: 15px !important;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25) !important;
}

input::placeholder {
    color: #64748b;
}

/* Password field with absolute show/hide toggle */
.password-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.password-container input {
    margin: 0 !important;
    padding-right: 75px !important;
}

.show-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    color: #c084fc !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    padding: 6px 10px !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    z-index: 15;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.show-password-btn:hover {
    color: #e9d5ff !important;
    transform: translateY(-50%) scale(1.05) !important;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3) !important;
    margin-top: 18px;
    font-family: inherit;
    animation: none !important;
}

button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45) !important;
}

button[type="submit"]:active {
    transform: translateY(0) !important;
}

.login-actions {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.register-link,
.login-link,
.contact-link {
    color: #60a5fa !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.register-link:hover,
.login-link:hover,
.contact-link:hover {
    color: #93c5fd !important;
    text-decoration: underline;
}

/* Alerts and Messages */
p#message, .error-msg {
    margin-top: 15px;
    font-size: 14px;
    color: #f87171;
}

.notice, .error {
    text-align: left;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.notice {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.error {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

/* Dropdown Menu styling */
.menu-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.menu-btn {
    background: rgba(20, 24, 38, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    padding: 10px 18px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.menu-btn:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 101;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.dropdown-content a {
    color: #cbd5e1 !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.dropdown-content a:hover {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #ffffff !important;
    padding-left: 20px !important;
}

.menu-dropdown:hover .dropdown-content {
    display: block;
}

/* Override styling for register/join page details */
.intro {
    margin: -8px 0 20px;
    color: #94a3b8 !important;
    font-size: 14px;
    line-height: 1.6;
}

.role-field {
    display: grid;
    gap: 7px;
    margin: 14px 0 !important;
    text-align: left;
}

.role-field span:first-child {
    color: #cbd5e1 !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-description {
    margin: 6px 0 0;
    color: #64748b !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    h2 {
        font-size: 24px;
    }
    input[type="text"],
    input[type="password"],
    select,
    button[type="submit"] {
        font-size: 14px !important;
    }
}
