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

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

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 140, 66, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 140, 66, 0.5); }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.15) 0%, transparent 60%);
    top: -350px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: glow 4s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    bottom: -250px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 32px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    filter: drop-shadow(0 4px 20px rgba(255, 140, 66, 0.5));
    color: #ff8c42;
}

.logo-icon svg {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.form-subtitle {
    color: #8b92a8;
    font-size: 16px;
}

.auth-card {
    background: rgba(19, 24, 36, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideIn 0.6s ease-out;
}

.tabs {
    display: flex;
    gap: 8px;
    background: rgba(10, 14, 26, 0.6);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.tab {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #8b92a8;
    font-family: inherit;
}

.tab.active {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.4);
}

.tab:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #e8eaf0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(10, 14, 26, 0.6) !important;
    color: #e8eaf0 !important;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #ff8c42;
    background: rgba(10, 14, 26, 0.9) !important;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

input::placeholder {
    color: #6b7280;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(10, 14, 26, 0.9) inset !important;
    -webkit-text-fill-color: #e8eaf0 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #8b92a8;
    pointer-events: none;
    z-index: 10;
}

.input-icon svg {
    stroke: #8b92a8;
}

.hint {
    color: #8b92a8;
    font-size: 12px;
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 400px;
    height: 400px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 140, 66, 0.5);
}

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

.message {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    gap: 12px;
}

.message.show {
    display: flex;
}

.message.error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.message.error::before {
    content: "⚠";
    font-size: 20px;
}

.message.success {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.15) 0%, rgba(81, 207, 102, 0.05) 100%);
    color: #51cf66;
    border: 2px solid rgba(81, 207, 102, 0.3);
}

.message.success::before {
    content: "✓";
    font-size: 20px;
}
