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

:root {
    --bg-color: #0b0c10;
    --text-primary: #ffffff;
    --text-secondary: #a3a8b5;
    --accent-gradient: linear-gradient(135deg, #ff7e5f, #feb47b);
    --accent-color: #ff7e5f;
    --glass-bg: rgba(20, 22, 28, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: #ff7e5f;
    --error-color: #ff4b4b;
    --success-color: #00e676;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Mesmerizing Animated Background */
.background-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 126, 95, 0.15), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1), transparent 30%);
    animation: rotateBg 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 460px;
    z-index: 1;
    padding: 48px 40px;
    position: relative;
    margin: auto;
}

/* Premium Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
    transform: translateY(-5px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img { 
    width: 42px; 
    height: 42px; 
    vertical-align: middle; 
    margin-right: 12px; 
    border-radius: 10px;
    filter: drop-shadow(0 4px 10px rgba(255, 126, 95, 0.3));
}

.badge {
    background: rgba(255, 126, 95, 0.15);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 126, 95, 0.3);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.1);
}

.title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #c9d1d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 18px 20px;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-group input:focus {
    border-color: var(--input-focus);
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 126, 95, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-group input::placeholder {
    color: #5c6270;
}

button {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 126, 95, 0.4);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(255, 126, 95, 0.3);
}

button:disabled {
    background: #2a2e37;
    color: #5c6270;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.message-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-box.error {
    background-color: rgba(255, 75, 75, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.message-box.success {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.footer-note {
    margin-top: 36px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-note a:hover {
    color: #feb47b;
    text-shadow: 0 0 10px rgba(254, 180, 123, 0.5);
}
