* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a0a2e, #2d1b4e);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 40px;
    color: #d4a857;
    background: rgba(212, 168, 87, 0.1);
    padding: 15px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 10px;
}

.logo span {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.logo span span {
    display: inline;
    color: #d4a857;
}

.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
}

.role-btn {
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.role-btn i {
    font-size: 14px;
}

.role-btn.active {
    background: rgba(212, 168, 87, 0.2);
    color: #d4a857;
}

.role-btn:hover {
    color: #fff;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
}

.input-group input {
    width: 100%;
    padding: 14px 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #d4a857;
    background: rgba(255, 255, 255, 0.06);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4a857, #b8923a);
    color: #1a0a2e;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 87, 0.3);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-guest {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-guest:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 168, 87, 0.3);
    color: #fff;
}

.info {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    text-align: center;
}

.info strong {
    color: #d4a857;
}

#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 600;
    display: none;
    z-index: 999;
    border-left: 4px solid #d4a857;
}

#toast.show {
    display: block;
    animation: slideIn 0.4s ease;
}

#toast.success {
    border-left-color: #6bcb77;
}
#toast.error {
    border-left-color: #ff6b6b;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 480px) {
    .login-box { padding: 30px 20px; }
    .role-btn span { display: none; }
    .role-btn i { font-size: 18px; }
}

.btn-login i.fa-spinner {
    margin-right: 8px;
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}